chemerisuk / cordova-plugin-firebase-authentication

Cordova plugin for Firebase Authentication
MIT License
98 stars 60 forks source link

How to add custom scope on google sign in? #102

Closed stefdelec closed 4 years ago

stefdelec commented 4 years ago

Hi, Thanks for this plugin. I was wondering how to add scope to authentification with google like in https://firebase.google.com/docs/reference/js/firebase.auth.OAuthProvider

// Start a sign in process for an unauthenticated user. var provider = new firebase.auth.OAuthProvider('google.com'); provider.addScope('profile'); provider.addScope('email'); firebase.auth().signInWithRedirect(provider);

chemerisuk commented 4 years ago

Use https://github.com/EddyVerbruggen/cordova-plugin-googleplus and specify appropriate value for scopes option.