TikiStrategyMicrosoft.loggedIn constructor
TikiStrategyMicrosoft.loggedIn({})
Implementation
TikiStrategyMicrosoft.loggedIn(
{required String redirectUri,
required String clientId,
required String? token,
String? email,
String? displayName,
String? refreshToken,
Function(AuthModel)? onLink,
Function(String?)? onUnlink,
Function(
{String? accessToken,
DateTime? accessExp,
String? refreshToken,
DateTime? refreshExp,
Object? error})?
onRefresh,
Httpp? httpp})
: _authService = AuthService(
model: AuthModel(
isLinked: true,
email: email,
token: token,
displayName: displayName,
refreshToken: refreshToken,
),
redirectUri: redirectUri,
clientId: clientId,
httpp: httpp,
onLink: onLink,
onUnlink: onUnlink,
onRefresh: onRefresh) {
_emailService = EmailService(_authService);
}