loginWithNewScopes method

Future<void> loginWithNewScopes(
  1. List<String> scopes
)

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<void> loginWithNewScopes(List<String> scopes) async {
  final authCode = await AuthCodeClient.instance.requestWithAgt(scopes);
  final token = await AuthApi.instance.issueAccessToken(authCode);
  await AccessTokenStore.instance.toStore(token);
}