logIn method
- String? email,
override
Log in to a service and return authenticated user data
Implementation
@override
Future<AuthUser<OAuthToken>?> logIn({String? email}) {
return appAuth
.authorizeAndExchangeCode(
AuthorizationTokenRequest(
clientId,
redirectUrl,
loginHint: email,
clientSecret: clientSecret,
serviceConfiguration: serviceConfig,
scopes: scopes,
),
)
.then(_mapResponseToUser);
}