FirebaseAccount.create constructor

FirebaseAccount.create(
  1. Client client,
  2. String apiKey,
  3. SignInResponse signInResponse, {
  4. bool autoRefresh = true,
  5. String? locale,
})

Creates a new account from a successfuly sign in response.

Instead of using this constructor directly, prefer using one of the FirebaseAuth classes signIn/signUp methods.

The account is created by using the client and apiKey for accessing the Firebase REST endpoints. The user credentials are extracted from the signInResponse. If autoRefresh and locale are used to initialize these properties.

Implementation

FirebaseAccount.create(
  Client client,
  String apiKey,
  SignInResponse signInResponse, {
  bool autoRefresh = true,
  String? locale,
}) : this.apiCreate(
        RestApi(client, apiKey),
        signInResponse,
        autoRefresh: autoRefresh,
        locale: locale,
      );