nativescript-oauth2 icon indicating copy to clipboard operation
nativescript-oauth2 copied to clipboard

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

Open flynsequeira opened this issue 6 years ago • 3 comments

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"

flynsequeira avatar Feb 11 '19 16:02 flynsequeira

appended ":auto" with redirectUri, like redirectUri: ":auto,

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.

ashishrai96 avatar Jun 02 '19 08:06 ashishrai96

Make sure to configure this https://github.com/alexziskind1/nativescript-oauth2/blob/master/README.md#android

mehulcs avatar Jun 02 '19 08:06 mehulcs

I'm having this same issue but my configuration of the tag is identical to yours.

Adding android:launchMode="singleTask" didn't resolve it.

steven-aj avatar Mar 17 '20 22:03 steven-aj