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