You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.languagecode.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Auth.languageCode property
6
6
7
-
The current 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.
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.
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.onauthstatechanged.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@
6
6
7
7
Adds an observer for changes to the user's sign-in state.
8
8
9
-
Prior to 4.0.0, this triggered the observer when users were signed in, signed out, or when the user's ID token changed in situations such as token expiry or password change. After 4.0.0, the observer is only triggered on sign-in or sign-out.
10
-
11
9
To keep the old behavior, see [Auth.onIdTokenChanged()](./auth-types.auth.onidtokenchanged.md)<!---->.
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.onidtokenchanged.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Auth.onIdTokenChanged() method
6
6
7
-
Adds an observer for changes to the signed-in user's ID token, which includes sign-in, sign-out, and token refresh events. This method has the same behavior as [Auth.onAuthStateChanged()](./auth-types.auth.onauthstatechanged.md) had prior to 4.0.0.
7
+
Adds an observer for changes to the signed-in user's ID token, which includes sign-in, sign-out, and token refresh events.
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.setpersistence.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Auth.setPersistence() method
6
6
7
-
Changes the current type of persistence on the current 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.
7
+
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.
8
8
9
9
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.
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.tenantid.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Auth.tenantId property
6
6
7
-
The current 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.
7
+
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.
8
8
9
9
<b>Signature:</b>
10
10
@@ -17,11 +17,11 @@ tenantId: string | null;
17
17
18
18
```
19
19
// Set the tenant ID on Auth instance.
20
-
auth.tenantId = ‘TENANT_PROJECT_ID’;
20
+
auth.tenantId = 'TENANT_PROJECT_ID';
21
21
22
22
// All future sign-in request now include tenant ID.
23
23
const result = await signInWithEmailAndPassword(auth, email, password);
24
-
// result.user.tenantId should be ‘TENANT_PROJECT_ID’.
24
+
// result.user.tenantId should be 'TENANT_PROJECT_ID'.
Copy file name to clipboardExpand all lines: docs-exp/auth-types.auth.updatecurrentuser.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Auth.updateCurrentUser() method
6
6
7
-
Asynchronously sets the provided user as `currentUser` on the current Auth instance. A new instance copy of the user provided will be made and set as currentUser.
7
+
Asynchronously sets the provided user as `currentUser` on the Auth instance. A new instance copy of the user provided will be made and set as currentUser.
8
8
9
9
This will trigger [Auth.onAuthStateChanged()](./auth-types.auth.onauthstatechanged.md) and [Auth.onIdTokenChanged()](./auth-types.auth.onidtokenchanged.md) listeners like other sign in methods.
| [appName](./auth-types.autherror.appname.md) | string | The name of the Firebase App which triggered this error. |
20
-
| [email](./auth-types.autherror.email.md) | string | The email of the user's account used for sign-in/linking. |
21
-
| [phoneNumber](./auth-types.autherror.phonenumber.md) | string | The phone number of the user's account used for sign-in/linking. |
20
+
| [email](./auth-types.autherror.email.md) | string | The email of the user's account, used for sign-in/linking. |
21
+
| [phoneNumber](./auth-types.autherror.phonenumber.md) | string | The phone number of the user's account, used for sign-in/linking. |
22
22
| [tenantid](./auth-types.autherror.tenantid.md) | string | The tenant ID being used for sign-in/linking. If you use <code>signInWithRedirect</code> to sign in, you have to set the tenant ID on [Auth](./auth-types.auth.md) instance again as the tenant ID is not persisted after redirection. |
Copy file name to clipboardExpand all lines: docs-exp/auth-types.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@
56
56
|[PopupRedirectResolver](./auth-types.popupredirectresolver.md)| A resolver used for handling DOM specific operations like <code>signInWithPopup()</code> or <code>signInWithRedirect()</code> |
|[UserCredential](./auth-types.usercredential.md)| A structure containing a User, an AuthCredential, the <code>operationType</code>, and any additional user information that was returned from the identity provider. operationType could be [OperationType.SIGN\_IN](./auth-types.operationtype.sign_in.md) for a sign-in operation, [OperationType.LINK](./auth-types.operationtype.link.md) for a linking operation and [OperationType.REAUTHENTICATE](./auth-types.operationtype.reauthenticate.md) for a reauthentication operation. |
59
+
|[UserCredential](./auth-types.usercredential.md)| A structure containing a User, an AuthCredential, the <code>operationType</code>, and any additional user information that was returned from the identity provider. <code>operationType</code> could be [OperationType.SIGN\_IN](./auth-types.operationtype.sign_in.md) for a sign-in operation, [OperationType.LINK](./auth-types.operationtype.link.md) for a linking operation and [OperationType.REAUTHENTICATE](./auth-types.operationtype.reauthenticate.md) for a reauthentication operation. |
60
60
|[UserInfo](./auth-types.userinfo.md)| User profile information, visible only to the Firebase project's apps. |
61
61
|[UserMetadata](./auth-types.usermetadata.md)| Interface representing a user's metadata. |
Copy file name to clipboardExpand all lines: docs-exp/auth-types.multifactoruser.enroll.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## MultiFactorUser.enroll() method
6
6
7
-
Enrolls a second factor as identified by the [MultiFactorAssertion](./auth-types.multifactorassertion.md) for the current user. On resolution, the user tokens are updated to reflect the change in the JWT payload. Accepts an additional display name parameter used to identify the second factor to the end user. Recent re-authentication is required for this operation to succeed. On successful enrollment, existing Firebase sessions (refresh tokens) are revoked. When a new factor is enrolled, an email notification is sent to the user’s email.
7
+
Enrolls a second factor as identified by the [MultiFactorAssertion](./auth-types.multifactorassertion.md) for the user. On resolution, the user tokens are updated to reflect the change in the JWT payload. Accepts an additional display name parameter used to identify the second factor to the end user. Recent re-authentication is required for this operation to succeed. On successful enrollment, existing Firebase sessions (refresh tokens) are revoked. When a new factor is enrolled, an email notification is sent to the user’s email.
0 commit comments