hasGrantedAllScopes method
Checks if hte user has granted all the specified scopes
.
scopes
is a space-separated list of scope names.
Method: google.accounts.oauth2.hasGrantedAllScopes https://developers.google.com/identity/oauth2/web/reference/js-reference#google.accounts.oauth2.hasGrantedAllScopes
Implementation
bool hasGrantedAllScopes(TokenResponse tokenResponse, List<String> scopes) {
return scopes
.every((String scope) => _hasGrantedScope(tokenResponse, scope.toJS));
}