Not redirecting to app after google login - Reaches a page that says "Please copy this code, switch your app and paste it there" - After returning the auth code
config is something like this.
{
openIdSupport: "oid-full",
clientId:
"<taken from google project config",
redirectUri:
"<taken from google project config>",
urlScheme:
// Same as yours. Not sure where to get this from for me personally
"com.googleusercontent.apps.932931520457-buv2dnhgo7jjjjv5fckqltn367psbrlb",
scopes: ["email"]
};
Which platform(s) does your issue occur on?
- iOS
After logging in, it gives this as the result -
"Please copy this code, switch your app and paste it there"
appended ":auto" with redirectUri, like
redirectUri:
"
not it says "authorization has been granted successfully. please switch to your app." after switching to app nothing happens. even though logs have been embedded in the method they are too not printing anything.
Make sure to configure this https://github.com/alexziskind1/nativescript-oauth2/blob/master/README.md#android
I'm having this same issue but my configuration of the
Adding android:launchMode="singleTask" didn't resolve it.