Skip to content

useSignUpEmailSecurityKeyEmail()

Use the hook useSignUpEmailSecurityKeyEmail to sign up a user with security key and an email using the WebAuthn API.

const {
signUpEmailSecurityKey,
needsEmailVerification,
isLoading,
isSuccess,
isError,
error
} = useSignUpEmailSecurityKeyEmail()
console.log({ needsEmailVerification, isLoading, isSuccess, isError, error })
const handleFormSubmit = async (e) => {
e.preventDefault()
await signUpEmailSecurityKey('joe@example.com')
}

options optional SignUpSecurityKeyOptions