I can’t get GET /authorize API calls for social connections to work.
I’m being successfully redirected (302) to the social provider server to authorize my app, but upon being redirected back to Auth0, I get a " Oops!, something went wrong" error message with:
“You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session. Try logging in again from the application and if the problem persists please contact the administrator.”
I never get redirected back to my app.
Here’s the initial API request I make:
GET https://{domain}/authorize with the following parameters:
response_type: 'code'
client_id: xxxxx
connection: 'google-oauth2'
redirect_uri: 'http://localhost:3000/auth/auth0/callback' (this is an allowed callback URL)
Those errors usually happen when there is a reused state. Are you by any chance making many authentication requests at once, or even two at the same time? That could lead to the state being used in a previous request. Or, opening two tabs at once, completing one, and then completing the other? This could be a race condition.
Otherwise, do you have the “Tracking ID” that’s displayed in the page?
Aha! I think that I’ve found something. It seems like you are still using our Developer keys for Google. Would it be possible to get your own keys and test it out again? There is no cost associated to it, and you can find the instructions here: https://auth0.com/docs/connections/social/google