BasicAuthenticationConfig constructor
BasicAuthenticationConfig({
- required Uri loginCredentialsAPIendpoint(),
- required Uri signupCredentialsAPIendpoint(),
- FutureOr<
AuthenticationData> customLoginResponseParser(- String response
- FutureOr<
User> ? customUserMapper()?, - Uri refreshTokenAPIendpoint(
- String refreshToken,
- JWT token
- bool debug = false,
- FutureOr<
Map< customLoginRequestMapper()?,String, String> > - FutureOr<
AuthenticationData> ? customSignupCredentialsResponseParser(- String body
- bool authenticateOnSignup = true,
- FutureOr<
AuthCredentialsProvider> customAutoSignupAuthClbk(- AuthSignUpPayload payload,
- AuthenticationData? authData
- Uri fetchUserInformationAPIendpoint(
- AuthenticationData data
- FutureOr<
Map< customFetchUserInformationResponseMapper()?,String, dynamic> > - bool initialAuthCheckedAfterUserFetch = true,
- bool autoLogoutOnSessionExpired = true,
- Duration? maxAge,
- FutureOr<
Map< customRefreshTokenResponseParser(String, String> >- String body
- void onRefreshToken()?,
- String? refreshTokenMethod,
- FutureOr<
Map< customRefreshTokenRequestBodyMapper()?,String, String> > - Duration? refreshTokenTimeout,
- void onRefreshTokenFailure()?,
- required Uri deleteAccountApiEndpoint(
- String userId
- User? deleteAccountCustomResponseParser()?,
- bool logoutAfterDelete = true,
- FutureOr<
Map< customRefreshTokenCallback()?,String, String> >
Implementation
BasicAuthenticationConfig({
required this.loginCredentialsAPIendpoint,
required this.signupCredentialsAPIendpoint,
this.customLoginResponseParser,
this.customUserMapper,
this.refreshTokenAPIendpoint,
this.debug = false,
this.customLoginRequestMapper,
this.customSignupCredentialsResponseParser,
this.authenticateOnSignup = true,
this.customAutoSignupAuthClbk,
this.fetchUserInformationAPIendpoint,
this.customFetchUserInformationResponseMapper,
this.initialAuthCheckedAfterUserFetch = true,
this.autoLogoutOnSessionExpired = true,
this.maxAge,
this.customRefreshTokenResponseParser,
this.onRefreshToken,
this.refreshTokenMethod,
this.customRefreshTokenRequestBodyMapper,
this.refreshTokenTimeout,
this.onRefreshTokenFailure,
required this.deleteAccountApiEndpoint,
this.deleteAccountCustomResponseParser,
this.logoutAfterDelete = true,
this.customRefreshTokenCallback,
});