FirebaseAccount.create constructor
FirebaseAccount.create(
- Client client,
- String apiKey,
- SignInResponse signInResponse, {
- bool autoRefresh = true,
- 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,
);