Sign In with Magic Link
Follow this guide to sign in users with Magic Link, also called passwordless email.
The Magic Link sign-in method enables you to sign in users to your app using an email address, without requiring a password.
Setup
Enable the Magic Link sign-in method in the Nhost dashboard under Users -> Authentication Settings -> Magic Link.
Sign In
To sign in users with Magic Link is a two-step process:
- Send a Magic Link to the user's email address.
- The user clicks the Magic Link in their email to sign in to your app.
Use the Nhost JavaScript client to sign up users with Magic Link in your app:
nhost.auth.signIn({
email: 'joe@example.com'
})
If you want to change the email for your magic link emails, you can do so by changing the email templates.