Closed thomasmarren closed 5 years ago
Hi Thomas, apologies for the delay, can you try the latest version? I'm trying to reproduce this atm.
I can confirm same issue using google. Call back never gets fired and no error is thrown and I am using 0.3.0, also for me it never fires the callback, first login or otherwise. First time trying from Google page it dies here client.oauthToken({ code_verifier: verifier, grantType: 'authorization_code', redirectUri: redirectUri, code: code }, function (exchangeError, exchangeResult) { if (exchangeError) { return callback(exchangeError); } return callback(null, exchangeResult); });
Update: hopefully saving people time, if you don't set your Client in the Dashboard to either SPA or Native, auth0-js tries to call the token endpoint and silently fails because it requires client_secret unless set to SPA or Native.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
I'm trying to open Google authentication directly from my Cordova app rather than going to the hosted login page and having the user click "Sign in with Google." I'm passing the connection parameter into the
client.authorize()
function like so:It is loading the Google OAuth page as expected however once the user authenticates, the callback is not fired. The url is being redirected back to the app, and I am passing it into
Auth0Cordova.onRedirectUri()
The same process works as expected without the
connection
parameter so I'm wondering if this library does not support aconnection
parameter? I know this is possible with the Auth0-js library.Thank you
EDIT: It only occurs when I've previously logged in with Google and it remembers my login. The redirect seems to be happening too early. If it is my first time authenticating with Google it works as expected.