FirebaseProjectAuth constructor

FirebaseProjectAuth({
  1. required ProjectAuthConfig config,
  2. required FirebaseAuth auth,
  3. Client? client,
  4. KeyValueCache? cache,
  5. Duration claimsPropagationTimeout = const Duration(seconds: 30),
  6. Duration claimsPollInterval = const Duration(seconds: 2),
  7. int claimsReverifyEvery = 3,
  8. Duration restoreTimeout = const Duration(seconds: 3),
  9. bool? claimsFromToken,
  10. void onError(
    1. Object error,
    2. StackTrace stack
    )?,
})

Implementation

FirebaseProjectAuth({
  required this.config,
  required this.auth,
  http.Client? client,
  KeyValueCache? cache,
  this.claimsPropagationTimeout = const Duration(seconds: 30),
  this.claimsPollInterval = const Duration(seconds: 2),
  this.claimsReverifyEvery = 3,
  this.restoreTimeout = const Duration(seconds: 3),
  bool? claimsFromToken,
  this.onError,
})  : client = client ?? http.Client(),
      cache = cache ?? MemoryKeyValueCache(),
      claimsFromToken = claimsFromToken ?? (!kIsWeb && defaultTargetPlatform == TargetPlatform.windows);