getAccessToken method

  1. @override
Future<String?> getAccessToken()
override

Implementation

@override
Future<String?> getAccessToken() async {
  final AuthorizationTokenResponse? result =
      await appAuth.authorizeAndExchangeCode(
    AuthorizationTokenRequest(
      clientId,
      redirectUrl,
      discoveryUrl: discoveryUrl,
      scopes: ['openid', 'profile', 'email'],
    ),
  );
  return result?.accessToken;
}