Use the hook useSignInSecurityKey to sign in a user with a security key using the WebAuthn API.
const {
  signInSecurityKey,
  needsEmailVerification,
  isLoading,
  isSuccess,
  isError,
  error
} = useSignInSecurityKey()

console.log({ needsEmailVerification, isLoading, isSuccess, isError, error })

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

  await signInSecurityKey()
}