-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Use case
The GoogleSignIn APIs for Android, iOS, and Web all provide a mechanism to request additional scopes after sign-in. It would be helpful for the google_sign_in plugin to also provide a mechanism to check granted scopes and grant new scopes (i.e. optional scopes or scopes for new features).
Proposal
Offer two new APIs on GoogleSignIn:
Future<bool> hasGrantedScope(String scope); Which indicates if scope has already been granted by currentUser.
Future<bool> requestScope(String scope); Which requests scope be granted by the currentUser.
emerssso, hotdogicn and amitburstamitburst and mbenci
Metadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.