Authenticator constructor
Authenticator({})
Implementation
Authenticator({
required this.scopes,
required this.clientId,
required this.authorizationEndpointUrl,
required this.tokenEndpointUrl,
required this.logoutEndpointUrl,
required String callbackUrl,
Duration? renewalMargin, // defaults to 2 minutes
LaunchMode? launchMode,
}) : authorizationEndpoint = Uri.parse(authorizationEndpointUrl),
tokenEndpoint = Uri.parse(tokenEndpointUrl),
logoutEndpoint = Uri.parse(logoutEndpointUrl),
callbackUrl = Uri.parse(callbackUrl),
renewalMargin = renewalMargin ?? Duration(minutes: 2),
launchMode = launchMode ?? _defaultLaunchMode;