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-devsite/auth.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Firebase Authentication
49
49
|[signOut(auth)](./auth.md#signout)| Signs out the current user. |
50
50
|[updateCurrentUser(auth, user)](./auth.md#updatecurrentuser)| Asynchronously sets the provided user as [Auth.currentUser](./auth.auth.md#authcurrentuser) on the [Auth](./auth.auth.md#auth_interface) instance. |
51
51
|[useDeviceLanguage(auth)](./auth.md#usedevicelanguage)| Sets the current language to the default device/browser preference. |
52
+
|[validatePassword(auth, password)](./auth.md#validatepassword)| Validates the password against the password policy configured for the project or tenant. |
52
53
|[verifyPasswordResetCode(auth, code)](./auth.md#verifypasswordresetcode)| Checks a password reset code sent to the user by email or other out-of-band mechanism. |
53
54
| <b>function(link...)</b> |
54
55
|[parseActionCodeURL(link)](./auth.md#parseactioncodeurl)| Parses the email action link string and returns an [ActionCodeURL](./auth.actioncodeurl.md#actioncodeurl_class) if the link is valid, otherwise returns null. |
@@ -1080,6 +1081,39 @@ export declare function useDeviceLanguage(auth: Auth): void;
1080
1081
1081
1082
void
1082
1083
1084
+
## validatePassword()
1085
+
1086
+
Validates the password against the password policy configured for the project or tenant.
1087
+
1088
+
If no tenant ID is set on the `Auth` instance, then this method will use the password policy configured for the project. Otherwise, this method will use the policy configured for the tenant. If a password policy has not been configured, then the default policy configured for all projects will be used.
1089
+
1090
+
If an auth flow fails because a submitted password does not meet the password policy requirements and this method has previously been called, then this method will use the most recent policy available when called again.
0 commit comments