Skip to content

Commit

Permalink
Mark method as deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
prameshj committed Nov 9, 2023
1 parent f727f31 commit 293da7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs-devsite/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): P
| Parameter | Type | Description |
| --- | --- | --- |
| auth | [Auth](./auth.auth.md#auth_interface) | The [Auth](./auth.auth.md#auth_interface) instance. |
| email | string | The user's email address. |
| email | string | The user's email address.<!-- -->Deprecated Migrating off of this method is recommended as a security best-practice. |

<b>Returns:</b>

Expand Down
2 changes: 1 addition & 1 deletion packages/auth/demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function onAuthError(error) {
if (error.code === 'auth/user-token-expired') {
alertError('Token expired, please reauthenticate.');
}
if (error.code === 'auth/invalid-login-credential') {
if (error.code === 'auth/invalid-login-credentials') {
alertError(
'login credentials invalid. It is possible that the email/password combination does not exist.'
);
Expand Down
1 change: 1 addition & 0 deletions packages/auth/src/core/strategies/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import { getModularInstance } from '@firebase/util';
* @param auth - The {@link Auth} instance.
* @param email - The user's email address.
*
* Deprecated Migrating off of this method is recommended as a security best-practice.
* @public
*/
export async function fetchSignInMethodsForEmail(
Expand Down

0 comments on commit 293da7f

Please sign in to comment.