Class: Authentication
Methods#
create#
▸ Static create(options, name?): Authentication
Parameters#
| Name | Type |
|---|---|
options | FirebaseOptions |
name? | string |
Returns#
Defined in#
connectAuthEmulator#
▸ connectAuthEmulator(host, port, options?): void
Parameters#
| Name | Type |
|---|---|
host | string |
port | number |
options? | Object |
options.disableWarnings | boolean |
Returns#
void
Defined in#
isUserLogin#
▸ isUserLogin(nextOrObserver): Unsubscribe
Parameters#
| Name | Type |
|---|---|
nextOrObserver | NextOrObserver<User> |
Returns#
Unsubscribe
Defined in#
signupWithEmailAndPassword#
▸ signupWithEmailAndPassword(email, password, persistanceType?): Promise<UserCredential>
Parameters#
| Name | Type | Default value |
|---|---|---|
email | string | undefined |
password | string | undefined |
persistanceType | "local" | "session" | "memory" | "local" |
Returns#
Promise<UserCredential>
Defined in#
loginWithEmailAndPassword#
▸ loginWithEmailAndPassword(email, password): Promise<UserCredential>
Parameters#
| Name | Type |
|---|---|
email | string |
password | string |
Returns#
Promise<UserCredential>
Defined in#
logout#
▸ logout(): Promise<void>
Returns#
Promise<void>
Defined in#
Constructors#
constructor#
• new Authentication(options, name?)
Parameters#
| Name | Type |
|---|---|
options | FirebaseOptions |
name? | string |