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
Sends a sign-in email link to the user with the specified email. Wraps the underlying `auth.sendSignInLinkToEmail` method and provides additional `sending` and `error` information.
534
+
535
+
To complete sign in with the email link use the [useSignInWithEmailLink](#usesigninwithemaillink) hook.
536
+
537
+
The `useSendSignInLinkToEmail` hook takes the following parameters:
538
+
539
+
-`auth`: `Auth` instance for the app you would like to monitor
540
+
541
+
Returns:
542
+
543
+
-`sendSignInLinkToEmail(email: string, actionCodeSettings: ActionCodeSettings)`: a function you can call to send a sign-in email link to an email. Requires an [actionCodeSettings](https://firebase.google.com/docs/reference/js/auth.actioncodesettings.md#actioncodesettings_interface) object.
544
+
-`sending`: A `boolean` to indicate whether the email is being sent
545
+
-`error`: Any `Error` returned by Firebase when trying to send the email, or `undefined` if there is no error
Login a user using an email and sign-in email link. Wraps the underlying `auth.signInWithEmailLink` method and provides additional `loading` and `error` information.
614
+
615
+
The `useSignInWithEmailAndPassword` hook takes the following parameters:
616
+
617
+
-`auth`: `Auth` instance for the app you would like to monitor
618
+
619
+
Returns:
620
+
621
+
-`signInWithEmailLink(email: string, emailLink?: string)`: a function you can call to start the login. If no `emailLink` is supplied, the link is inferred from the current URL.
622
+
-`user`: The `auth.User` if the user was logged in or `undefined` if not
623
+
-`loading`: A `boolean` to indicate whether the the user login is processing
624
+
-`error`: Any `Error` returned by Firebase when trying to login the user, or `undefined` if there is no error
0 commit comments