Skip to content

Commit 2c1764d

Browse files
avolkovisam-gc
andauthored
Add documentation for auth@next (#3938)
* Add documentation for auth@next * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * Update packages-exp/auth-types-exp/index.d.ts Co-authored-by: Sam Horlbeck Olsen <[email protected]> * PR Feedback * More docs + PR feedback * Fix typo and remove stray hyphen * One more pass of feedback Co-authored-by: Sam Horlbeck Olsen <[email protected]>
1 parent add9d21 commit 2c1764d

File tree

171 files changed

+1785
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+1785
-450
lines changed

common/api-review/auth-types-exp.api.md

Lines changed: 5 additions & 142 deletions
Large diffs are not rendered by default.

docs-exp/auth-types.actioncodeinfo.data.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
## ActionCodeInfo.data property
66

7+
The data associated with the action code. For the [Operation.PASSWORD\_RESET](./auth-types.operation.password_reset.md)<!-- -->, [Operation.VERIFY\_EMAIL](./auth-types.operation.verify_email.md)<!-- -->, and [Operation.RECOVER\_EMAIL](./auth-types.operation.recover_email.md) actions, this object contains an email field with the address the email was sent to.
8+
9+
For the [Operation.RECOVER\_EMAIL](./auth-types.operation.recover_email.md) action, which allows a user to undo an email address change, this object also contains a `previousEmail` field with the user account's current email address. After the action completes, the user's email address will revert to the value in the `email` field from the value in `previousEmail` field.
10+
11+
For the [Operation.VERIFY\_AND\_CHANGE\_EMAIL](./auth-types.operation.verify_and_change_email.md) action, which allows a user to verify the email before updating it, this object contains a `previousEmail` field with the user account's email address before updating. After the action completes, the user's email address will be updated to the value in the `email` field from the value in `previousEmail` field.
12+
13+
For the [Operation.REVERT\_SECOND\_FACTOR\_ADDITION](./auth-types.operation.revert_second_factor_addition.md) action, which allows a user to unenroll a newly added second factor, this object contains a `multiFactorInfo` field with the information about the second factor. For phone second factor, the `multiFactorInfo` is a [MultiFactorInfo](./auth-types.multifactorinfo.md) object, which contains the phone number.
14+
715
<b>Signature:</b>
816

917
```typescript

docs-exp/auth-types.actioncodeinfo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ActionCodeInfo interface
66

7-
https://firebase.google.com/docs/reference/js/firebase.auth.ActionCodeInfo
7+
A response from `checkActionCode`<!-- -->.
88

99
<b>Signature:</b>
1010

@@ -16,6 +16,6 @@ export interface ActionCodeInfo
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [data](./auth-types.actioncodeinfo.data.md) | { email?: string \| null; multiFactorInfo?: [MultiFactorInfo](./auth-types.multifactorinfo.md) \| null; previousEmail?: string \| null; } | |
20-
| [operation](./auth-types.actioncodeinfo.operation.md) | [Operation](./auth-types.operation.md) | |
19+
| [data](./auth-types.actioncodeinfo.data.md) | { email?: string \| null; multiFactorInfo?: [MultiFactorInfo](./auth-types.multifactorinfo.md) \| null; previousEmail?: string \| null; } | The data associated with the action code. For the [Operation.PASSWORD\_RESET](./auth-types.operation.password_reset.md)<!-- -->, [Operation.VERIFY\_EMAIL](./auth-types.operation.verify_email.md)<!-- -->, and [Operation.RECOVER\_EMAIL](./auth-types.operation.recover_email.md) actions, this object contains an email field with the address the email was sent to.<!-- -->For the [Operation.RECOVER\_EMAIL](./auth-types.operation.recover_email.md) action, which allows a user to undo an email address change, this object also contains a <code>previousEmail</code> field with the user account's current email address. After the action completes, the user's email address will revert to the value in the <code>email</code> field from the value in <code>previousEmail</code> field.<!-- -->For the [Operation.VERIFY\_AND\_CHANGE\_EMAIL](./auth-types.operation.verify_and_change_email.md) action, which allows a user to verify the email before updating it, this object contains a <code>previousEmail</code> field with the user account's email address before updating. After the action completes, the user's email address will be updated to the value in the <code>email</code> field from the value in <code>previousEmail</code> field.<!-- -->For the [Operation.REVERT\_SECOND\_FACTOR\_ADDITION](./auth-types.operation.revert_second_factor_addition.md) action, which allows a user to unenroll a newly added second factor, this object contains a <code>multiFactorInfo</code> field with the information about the second factor. For phone second factor, the <code>multiFactorInfo</code> is a [MultiFactorInfo](./auth-types.multifactorinfo.md) object, which contains the phone number. |
20+
| [operation](./auth-types.actioncodeinfo.operation.md) | [Operation](./auth-types.operation.md) | The type of operation that generated the action code. |
2121

docs-exp/auth-types.actioncodeinfo.operation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeInfo.operation property
66

7+
The type of operation that generated the action code.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodesettings.android.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeSettings.android property
66

7+
Sets the Android package name. This will try to open the link in an android app if it is installed. If `installApp` is passed, it specifies whether to install the Android app if the device supports it and the app is not already installed. If this field is provided without a `packageName`<!-- -->, an error is thrown explaining that the `packageName` must be provided in conjunction with this field. If `minimumVersion` is specified, and an older version of the app is installed, the user is taken to the Play Store to upgrade the app.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodesettings.dynamiclinkdomain.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeSettings.dynamicLinkDomain property
66

7+
When multiple custom dynamic link domains are defined for a project, specify which one to use when the link is to be opened via a specified mobile app (for example, `example.page.link`<!-- -->). Otherwise the first domain is automatically selected.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodesettings.handlecodeinapp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeSettings.handleCodeInApp property
66

7+
The default is false. When set to true, the action code link will be be sent as a Universal Link or Android App Link and will be opened by the app if installed. In the false case, the code will be sent to the web widget first and then on continue will redirect to the app if installed.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodesettings.ios.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## ActionCodeSettings.iOS property
66

7+
Sets the iOS bundle ID. This will try to open the link in an iOS app if it is installed.
8+
9+
App installation is not supported for iOS.
10+
711
<b>Signature:</b>
812

913
```typescript

docs-exp/auth-types.actioncodesettings.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ActionCodeSettings interface
66

7-
https://firebase.google.com/docs/reference/js/firebase.auth\#actioncodesettings
7+
This is the interface that defines the required continue/state URL with optional Android and iOS bundle identifiers.
88

99
<b>Signature:</b>
1010

@@ -16,9 +16,9 @@ export interface ActionCodeSettings
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [android](./auth-types.actioncodesettings.android.md) | { installApp?: boolean; minimumVersion?: string; packageName: string; } | |
20-
| [dynamicLinkDomain](./auth-types.actioncodesettings.dynamiclinkdomain.md) | string | |
21-
| [handleCodeInApp](./auth-types.actioncodesettings.handlecodeinapp.md) | boolean | |
22-
| [iOS](./auth-types.actioncodesettings.ios.md) | { bundleId: string; } | |
23-
| [url](./auth-types.actioncodesettings.url.md) | string | |
19+
| [android](./auth-types.actioncodesettings.android.md) | { installApp?: boolean; minimumVersion?: string; packageName: string; } | Sets the Android package name. This will try to open the link in an android app if it is installed. If <code>installApp</code> is passed, it specifies whether to install the Android app if the device supports it and the app is not already installed. If this field is provided without a <code>packageName</code>, an error is thrown explaining that the <code>packageName</code> must be provided in conjunction with this field. If <code>minimumVersion</code> is specified, and an older version of the app is installed, the user is taken to the Play Store to upgrade the app. |
20+
| [dynamicLinkDomain](./auth-types.actioncodesettings.dynamiclinkdomain.md) | string | When multiple custom dynamic link domains are defined for a project, specify which one to use when the link is to be opened via a specified mobile app (for example, <code>example.page.link</code>). Otherwise the first domain is automatically selected. |
21+
| [handleCodeInApp](./auth-types.actioncodesettings.handlecodeinapp.md) | boolean | The default is false. When set to true, the action code link will be be sent as a Universal Link or Android App Link and will be opened by the app if installed. In the false case, the code will be sent to the web widget first and then on continue will redirect to the app if installed. |
22+
| [iOS](./auth-types.actioncodesettings.ios.md) | { bundleId: string; } | Sets the iOS bundle ID. This will try to open the link in an iOS app if it is installed.<!-- -->App installation is not supported for iOS. |
23+
| [url](./auth-types.actioncodesettings.url.md) | string | Sets the link continue/state URL, which has different meanings in different contexts: - When the link is handled in the web action widgets, this is the deep link in the <code>continueUrl</code> query parameter. - When the link is handled in the app directly, this is the <code>continueUrl</code> query parameter in the deep link of the Dynamic Link. |
2424

docs-exp/auth-types.actioncodesettings.url.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeSettings.url property
66

7+
Sets the link continue/state URL, which has different meanings in different contexts: - When the link is handled in the web action widgets, this is the deep link in the `continueUrl` query parameter. - When the link is handled in the app directly, this is the `continueUrl` query parameter in the deep link of the Dynamic Link.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.additionaluserinfo.isnewuser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AdditionalUserInfo.isNewUser property
66

7+
Whether the user is new (created via sign-up) or existing (authenticated using sign-in).
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.additionaluserinfo.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## AdditionalUserInfo interface
66

7-
Additional user information.
7+
A structure containing additional user information from a federated identity provider.
88

99
<b>Signature:</b>
1010

@@ -16,8 +16,8 @@ export interface AdditionalUserInfo
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [isNewUser](./auth-types.additionaluserinfo.isnewuser.md) | boolean | |
20-
| [profile](./auth-types.additionaluserinfo.profile.md) | [UserProfile](./auth-types.userprofile.md) \| null | |
21-
| [providerId](./auth-types.additionaluserinfo.providerid.md) | [ProviderId](./auth-types.providerid.md) \| null | |
22-
| [username](./auth-types.additionaluserinfo.username.md) | string \| null | |
19+
| [isNewUser](./auth-types.additionaluserinfo.isnewuser.md) | boolean | Whether the user is new (created via sign-up) or existing (authenticated using sign-in). |
20+
| [profile](./auth-types.additionaluserinfo.profile.md) | [UserProfile](./auth-types.userprofile.md) \| null | Map containing IDP-specific user data. |
21+
| [providerId](./auth-types.additionaluserinfo.providerid.md) | [ProviderId](./auth-types.providerid.md) \| null | Identifier for the provider used to authenticate this user. |
22+
| [username](./auth-types.additionaluserinfo.username.md) | string \| null | The username if the provider is GitHub or Twitter. |
2323

docs-exp/auth-types.additionaluserinfo.profile.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AdditionalUserInfo.profile property
66

7+
Map containing IDP-specific user data.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.additionaluserinfo.providerid.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AdditionalUserInfo.providerId property
66

7+
Identifier for the provider used to authenticate this user.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.additionaluserinfo.username.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AdditionalUserInfo.username property
66

7+
The username if the provider is GitHub or Twitter.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.applicationverifier.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ApplicationVerifier interface
66

7-
https://firebase.google.com/docs/reference/js/firebase.auth.ApplicationVerifier
7+
A verifier for domain verification and abuse prevention. Currently, the only implementation is [RecaptchaVerifier](./auth-types.recaptchaverifier.md)<!-- -->.
88

99
<b>Signature:</b>
1010

@@ -16,11 +16,11 @@ export interface ApplicationVerifier
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [type](./auth-types.applicationverifier.type.md) | string | |
19+
| [type](./auth-types.applicationverifier.type.md) | string | Identifies the type of application verifier (e.g. "recaptcha"). |
2020

2121
## Methods
2222

2323
| Method | Description |
2424
| --- | --- |
25-
| [verify()](./auth-types.applicationverifier.verify.md) | |
25+
| [verify()](./auth-types.applicationverifier.verify.md) | Executes the verification process. |
2626

docs-exp/auth-types.applicationverifier.type.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ApplicationVerifier.type property
66

7+
Identifies the type of application verifier (e.g. "recaptcha").
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.applicationverifier.verify.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ApplicationVerifier.verify() method
66

7+
Executes the verification process.
8+
79
<b>Signature:</b>
810

911
```typescript
@@ -13,3 +15,5 @@ verify(): Promise<string>;
1315

1416
Promise&lt;string&gt;
1517

18+
A Promise for a token that can be used to assert the validity of a request.
19+

docs-exp/auth-types.auth.config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Auth.config property
66

7+
The [Config](./auth-types.config.md) used to initialize this instance.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.auth.currentuser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Auth.currentUser property
66

7+
The currently signed-in user (or null).
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.auth.languagecode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Auth.languageCode property
66

7+
The Auth instance's language code. This is a readable/writable property. When set to null, the default Firebase Console language setting is applied. The language code will propagate to email action templates (password reset, email verification and email change revocation), SMS templates for phone authentication, reCAPTCHA verifier and OAuth popup/redirect operations provided the specified providers support localization with the language code specified.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.auth.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
## Auth interface
66

7-
https://firebase.google.com/docs/reference/js/firebase.auth.Auth
7+
The Firebase Auth service interface.
8+
9+
See [Firebase Authentication](https://firebase.google.com/docs/auth/) for a full guide on how to use the Firebase Auth service.
810

911
<b>Signature:</b>
1012

@@ -16,22 +18,22 @@ export interface Auth
1618

1719
| Property | Type | Description |
1820
| --- | --- | --- |
19-
| [config](./auth-types.auth.config.md) | [Config](./auth-types.config.md) | |
20-
| [currentUser](./auth-types.auth.currentuser.md) | [User](./auth-types.user.md) \| null | |
21-
| [languageCode](./auth-types.auth.languagecode.md) | string \| null | |
22-
| [name](./auth-types.auth.name.md) | string | |
23-
| [settings](./auth-types.auth.settings.md) | [AuthSettings](./auth-types.authsettings.md) | |
24-
| [tenantId](./auth-types.auth.tenantid.md) | string \| null | |
21+
| [config](./auth-types.auth.config.md) | [Config](./auth-types.config.md) | The [Config](./auth-types.config.md) used to initialize this instance. |
22+
| [currentUser](./auth-types.auth.currentuser.md) | [User](./auth-types.user.md) \| null | The currently signed-in user (or null). |
23+
| [languageCode](./auth-types.auth.languagecode.md) | string \| null | The Auth instance's language code. This is a readable/writable property. When set to null, the default Firebase Console language setting is applied. The language code will propagate to email action templates (password reset, email verification and email change revocation), SMS templates for phone authentication, reCAPTCHA verifier and OAuth popup/redirect operations provided the specified providers support localization with the language code specified. |
24+
| [name](./auth-types.auth.name.md) | string | The name of the app associated with the Auth service instance. |
25+
| [settings](./auth-types.auth.settings.md) | [AuthSettings](./auth-types.authsettings.md) | The Auth instance's settings. This is used to edit/read configuration related options like app verification mode for phone authentication. |
26+
| [tenantId](./auth-types.auth.tenantid.md) | string \| null | The Auth instance's tenant ID. This is a readable/writable property. When you set the tenant ID of an Auth instance, all future sign-in/sign-up operations will pass this tenant ID and sign in or sign up users to the specified tenant project. When set to null, users are signed in to the parent project. By default, this is set to null. |
2527

2628
## Methods
2729

2830
| Method | Description |
2931
| --- | --- |
30-
| [onAuthStateChanged(nextOrObserver, error, completed)](./auth-types.auth.onauthstatechanged.md) | |
31-
| [onIdTokenChanged(nextOrObserver, error, completed)](./auth-types.auth.onidtokenchanged.md) | |
32-
| [setPersistence(persistence)](./auth-types.auth.setpersistence.md) | |
33-
| [signOut()](./auth-types.auth.signout.md) | |
34-
| [updateCurrentUser(user)](./auth-types.auth.updatecurrentuser.md) | |
35-
| [useDeviceLanguage()](./auth-types.auth.usedevicelanguage.md) | |
36-
| [useEmulator(url)](./auth-types.auth.useemulator.md) | |
32+
| [onAuthStateChanged(nextOrObserver, error, completed)](./auth-types.auth.onauthstatechanged.md) | Adds an observer for changes to the user's sign-in state.<!-- -->To keep the old behavior, see [Auth.onIdTokenChanged()](./auth-types.auth.onidtokenchanged.md)<!-- -->. |
33+
| [onIdTokenChanged(nextOrObserver, error, completed)](./auth-types.auth.onidtokenchanged.md) | Adds an observer for changes to the signed-in user's ID token, which includes sign-in, sign-out, and token refresh events. |
34+
| [setPersistence(persistence)](./auth-types.auth.setpersistence.md) | Changes the type of persistence on the Auth instance for the currently saved Auth session and applies this type of persistence for future sign-in requests, including sign-in with redirect requests.<!-- -->This makes it easy for a user signing in to specify whether their session should be remembered or not. It also makes it easier to never persist the Auth state for applications that are shared by other users or have sensitive data. |
35+
| [signOut()](./auth-types.auth.signout.md) | Signs out the current user. |
36+
| [updateCurrentUser(user)](./auth-types.auth.updatecurrentuser.md) | Asynchronously sets the provided user as <code>currentUser</code> on the Auth instance. A new instance copy of the user provided will be made and set as currentUser.<!-- -->This will trigger [Auth.onAuthStateChanged()](./auth-types.auth.onauthstatechanged.md) and [Auth.onIdTokenChanged()](./auth-types.auth.onidtokenchanged.md) listeners like other sign in methods.<!-- -->The operation fails with an error if the user to be updated belongs to a different Firebase project. |
37+
| [useDeviceLanguage()](./auth-types.auth.usedevicelanguage.md) | Sets the current language to the default device/browser preference. |
38+
| [useEmulator(url)](./auth-types.auth.useemulator.md) | Modify this Auth instance to communicate with the Firebase Auth emulator. This must be called synchronously immediately following the first call to <code>initializeAuth()</code>. Do not use with production credentials as emulator traffic is not encrypted. |
3739

docs-exp/auth-types.auth.name.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Auth.name property
66

7+
The name of the app associated with the Auth service instance.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.auth.onauthstatechanged.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## Auth.onAuthStateChanged() method
66

7+
Adds an observer for changes to the user's sign-in state.
8+
9+
To keep the old behavior, see [Auth.onIdTokenChanged()](./auth-types.auth.onidtokenchanged.md)<!-- -->.
10+
711
<b>Signature:</b>
812

913
```typescript
@@ -18,9 +22,9 @@ onAuthStateChanged(
1822

1923
| Parameter | Type | Description |
2024
| --- | --- | --- |
21-
| nextOrObserver | [NextOrObserver](./auth-types.nextorobserver.md)<!-- -->&lt;[User](./auth-types.user.md)<!-- -->&gt; | |
22-
| error | ErrorFn | |
23-
| completed | CompleteFn | |
25+
| nextOrObserver | [NextOrObserver](./auth-types.nextorobserver.md)<!-- -->&lt;[User](./auth-types.user.md)<!-- -->&gt; | callback triggered on change. |
26+
| error | ErrorFn | callback triggered on error. |
27+
| completed | CompleteFn | callback triggered when observer is removed. |
2428

2529
<b>Returns:</b>
2630

0 commit comments

Comments
 (0)