Skip to content

Sign In with a Magic Link

magic link passwordless email login link authentication no password email sign in

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.

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

await nhost.auth.signIn({
email: 'joe@example.com'
})