Skip to content

useSignUpEmailSecurityKey()

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

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

options optional SignUpSecurityKeyOptions