Google OAuth2 Plugin



I am trying to access Google APIs, specifically Google Drive, from an Angular NativeScript 2.5 app. To establish the OAuth2 authentication I have successfully used angular-oauth2-oidc in a web based Angular project. When I move the code into my Nativescript it crashes. Details below.

I am looking for an alternative OAuth2 solution. I am looking at nativescript-oauth but this states that Google is a work in progress due to some of their restrictions.

Any suggestions?



Forget it, I missed the part where you already looked at the above link. Sorry.


Yes I have tried nativescript-oauth but with Google it gets an Google Error: disallowed_useragent, as shown below. I have tried with a client ID of type Web application and also Android and both give the same error.