Vue
useSignInEmailPassword()
Use the composable useSignInEmailPassword
to sign in a user using email and password.
const {
signInEmailPassword,
needsEmailVerification,
isLoading,
isSuccess,
isError,
error
} = useSignInEmailPassword()
watchEffect(() => {
console.log(
needsEmailVerification.value,
isLoading.value,
isSuccess.value,
isError.value,
error.value
)
})
const handleFormSubmit = async (e) => {
e.preventDefault()
await signInEmailPassword('joe@example.com', 'secret-password')
}