# How to add google sign in embedded login?

**URL:** <https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960>\
**Category:** Get Help\
**Tags:** signup, google-signup, login\
**Created:** [January 10, 2021, 11:40am UTC](https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960 "2021-01-10T11:40:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dellwatson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dellwatson/32/26292_2.png) [@dellwatson](https://community.auth0.com/u/dellwatson)\
**Post date:** [January 10, 2021, 11:40am UTC](https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960/1 "2021-01-10T11:40:58Z")

</div>

Hello,  
I’m using my own ui to do sign-up & sign-in,  
so i currently use embedded login, but i have no idea how to integrate correctly with google-signin

I dont want to use universal login or lock, since my client don’t want to redirect the page & have their own design

but then how do i register/sync account from google-oauth to auth0 ?  
so my auth0 rules will be trigger and roles-creation will be applied,

im using **Login using a social provider’s access token api:** `/oauth/access_token`

```
    {
    'client_id': from auth0-application
    'access_token': from google-signin
    'connection': 'google-oauth2',
    'scope': 'openid profile email'
    }

```

but the return is 404, Not Found

* * *

I Assume the step are:

- do google signin to get access-token of identity
- call `/oauth/access_token` and pass access token of identity and receive access token of database
- then when i want to get (for eg) userProfile, i use Bearer access token from above

now my concern also how to async the email from database with google sign-in  
if I do google-signin with [X@mail.com](mailto:X@mail.com), I also still able to signup with [X@mail.com](mailto:X@mail.com) , and in users i got 2 users with the same email

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 26, 2021, 5:05pm UTC](https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960/4 "2021-01-26T17:05:46Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Saltuk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saltuk/32/14364_2.png) [@Saltuk](https://community.auth0.com/u/Saltuk)\
**Post date:** [December 7, 2021, 12:56pm UTC](https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960/5 "2021-12-07T12:56:42Z")

</div>

As of today, we don’t support native Google login. You may leave feedback at [Auth0: Secure access for everyone. But not just anyone.](http://auth0.com/feedback) for this feature. (Relevant note from one of our product managers is [here](https://community.auth0.com/t/announcing-native-login-with-facebook-public-beta/40665/10).)

As a side note, if you want to mix Universal Login with embedded flows (E.g. [Facebook Native](https://auth0.com/docs/connections/social/facebook-native)), you may want to hide the Auth0’s hosted login page and redirect the user to Google’s login page directly for authentication. Skipping the hosted page is possible by passing the **connection** parameter.

For example, if you were implementing this with Swift for iOS, you may use the sample on [this link](https://auth0.com/docs/libraries/auth0-swift#authenticate-with-a-specific-auth0-connection). I’m taking the code below for quick reference.

```auto
Auth0
    .webAuth()
    .connection("google-oauth2")
    .audience("https://YOUR_DOMAIN/userinfo")
    .start { result in
        switch result {
        case .success(let credentials):
            print("Credentials: \(credentials)")
        case .failure(let error):
            print(error)
        }
    }

```
