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

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

watchEffect(() => {
  console.log(isLoading.value, isSuccess.value, isError.value, error.value)
})

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

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

Parameters


options optional NestedRefOfValue<undefined | PasswordlessOptions>