Skip to content

Commit 26b197f

Browse files
authored
Fix example signature for signInWithEmailLink (#5862)
1 parent 0b385f1 commit 26b197f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/auth/src/core/strategies/email_link.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import { getModularInstance } from '@firebase/util';
6060
* await sendSignInLinkToEmail(auth, '[email protected]', actionCodeSettings);
6161
* // Obtain emailLink from the user.
6262
* if(isSignInWithEmailLink(auth, emailLink)) {
63-
* await signInWithEmailLink('user@example.com', '[email protected]', emailLink);
63+
* await signInWithEmailLink(auth, 'user@example.com', emailLink);
6464
* }
6565
* ```
6666
*
@@ -132,7 +132,7 @@ export function isSignInWithEmailLink(auth: Auth, emailLink: string): boolean {
132132
* await sendSignInLinkToEmail(auth, '[email protected]', actionCodeSettings);
133133
* // Obtain emailLink from the user.
134134
* if(isSignInWithEmailLink(auth, emailLink)) {
135-
* await signInWithEmailLink('user@example.com', '[email protected]', emailLink);
135+
* await signInWithEmailLink(auth, 'user@example.com', emailLink);
136136
* }
137137
* ```
138138
*

0 commit comments

Comments
 (0)