FirebaseAuth constructor

FirebaseAuth(
  1. String apiKey,
  2. TokenStore tokenStore, {
  3. Client? httpClient,
})

Implementation

FirebaseAuth(this.apiKey, TokenStore tokenStore, {http.Client? httpClient})
    : assert(apiKey.isNotEmpty),
      httpClient = httpClient ?? http.Client() {
  var keyClient = KeyClient(this.httpClient, apiKey);
  tokenProvider = TokenProvider(keyClient, tokenStore);

  _authGateway = AuthGateway(keyClient, tokenProvider);
  _userGateway = UserGateway(keyClient, tokenProvider);
}