Skip to main content

useSignInEmailPasswordless()

Overload 1 of 2

Use the hook useSignInEmailPasswordless to sign in a user using passwordless email (Magic Link).

const { signInEmailPasswordless, isLoading, isSuccess, isError, error } =
useSignInEmailPasswordless()

console.log({ isLoading, isSuccess, isError, error })

const handleFormSubmit = async (e) => {
e.preventDefault()

await signInEmailPasswordless('joe@example.com')
}

Parameters


options optional PasswordlessOptions


Overload 2 of 2

Deprecated

This overload is deprecated.

Parameters


email optional string


options optional PasswordlessOptions