Skip to content

Allow requesting additional scopes via the google_sign_in plugin #50208

@emerssso

Description

@emerssso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions