OAuthConfig constructor

const OAuthConfig({
  1. required String baseUrl,
  2. required String clientId,
  3. required String redirectScheme,
  4. List<String> scopes = const ['all', 'openid'],
  5. Duration tokenRefreshThreshold = const Duration(minutes: 5),
  6. bool autoRefresh = true,
  7. StorageType storageType = StorageType.secure,
  8. String? customAuthorizationEndpoint,
  9. String? customTokenEndpoint,
  10. String? customUserInfoEndpoint,
  11. Map<String, String> additionalAuthParams = const {},
  12. Duration networkTimeout = const Duration(seconds: 30),
  13. 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,
});