loginWithNewScopes method
Displays a consent screen requesting consent for personal information and access rights consent items that the user has not yet agreed to, and issues an updated OAuthToken with the consent items when the user agrees.
Implementation
Future<OAuthToken> loginWithNewScopes(List<String> scopes) async {
final authCode = await AuthCodeClient.instance.requestWithAgt(scopes);
final token = await AuthApi.instance.issueAccessToken(authCode);
await TokenManagerProvider.instance.manager.setToken(token);
return token;
}