OAuthConfig constructor
const
OAuthConfig({
- required String baseUrl,
- required String clientId,
- required String redirectScheme,
- List<
String> scopes = const ['all', 'openid'], - Duration tokenRefreshThreshold = const Duration(minutes: 5),
- bool autoRefresh = true,
- StorageType storageType = StorageType.secure,
- String? customAuthorizationEndpoint,
- String? customTokenEndpoint,
- String? customUserInfoEndpoint,
- Map<
String, String> additionalAuthParams = const {}, - Duration networkTimeout = const Duration(seconds: 30),
- bool enableLogging = false,
Implementation
const OAuthConfig({
required this.baseUrl,
required this.clientId,
required this.redirectScheme,
this.scopes = const ['all', 'openid'],
this.tokenRefreshThreshold = const Duration(minutes: 5),
this.autoRefresh = true,
this.storageType = StorageType.secure,
this.customAuthorizationEndpoint,
this.customTokenEndpoint,
this.customUserInfoEndpoint,
this.additionalAuthParams = const {},
this.networkTimeout = const Duration(seconds: 30),
this.enableLogging = false,
});