Magic Links are a type of passwordless login that allow users to sign in into their account by clicking a link that is emailed to them, rather than typing in their user and password.

Magic Links are disabled by default and can be enabled using the Nhost Dashboard under Settings -> Sign-In Methods -> Magic Link.

Sign In

To sign in users with a Magic Link, use signIn with only an email:

await nhost.auth.signIn({
  email: 'joe@example.com'
})
A user account is created the first time a Magic Link is used
Users who have signed up with email and password can also sign in with a Magic Link
It is possible to customize the email with the Magic Link, learn how to here