Hello, Auth0 community!
I am using the react SDK @auth0/auth0-react to implement our social login with OAuth2. I’m passing the connection parameter in order to skip the redirect part. We think this is a better user experience, where the user has to click the login button once and that’s it.
The login function looks like this:
loginWithRedirect({
redirectUri: "my-redirect-uri",
connection: "google-oauth2",
})
My question is whether I’m introducing security issues by doing this? Most guides/blogs don’t include the connection parameters, and “embedded” login is not recommended in general, so I’m worried about going with this approach.
Thanks for the help.