useSignUpEmailSecurityKeyEmail()
Use the hook 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')
}
Parameters
options optional SignUpSecurityKeyOptions