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