Nativescript-plugin-firebase: Add ability to add scopes for GoogleAuthProvider

Created on 21 May 2019  路  3Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

Could we add an ability of adding scopes to the GoogleAuthProvider?

https://firebase.google.com/docs/auth/web/google-signin#handle_the_sign-in_flow_with_the_firebase_sdk

Android Authentication enhancement iOS

Most helpful comment

Thanks! Added the required code an docs.

All 3 comments

Thanks for asking - would you be able to link to the iOS and Android docs as well?

@EddyVerbruggen, sure.

For Android we can use GoogleSignInOptions.Builder.requestScopes(..) function.

For iOS I believe we can use GIDSignIn.scopes property.

Thanks! Added the required code an docs.

Was this page helpful?
0 / 5 - 0 ratings