Skip to main content
The useVerifyNewAccount hook completes the account verification process after initiating authentication with email or phone number.
This hook applies only to React Native apps that don’t set supportsAuthV2. Web apps sign users in with useAuthenticateWithEmailOrPhone, and the user enters the code on a Para-hosted page.

Import

Usage

Web apps don’t call this hook. On the web, the user enters the code on the Para-hosted code page at authStateInfo.verificationUrl. The hook applies to React Native apps that don’t set supportsAuthV2, when authPhase is awaiting_account_verification.
Sign-in doesn’t say whether an email or phone has an account until the user enters the code. So the result can be a returning account too. Check stage and handle login and done as well as signup. If the login requires two-factor authentication, the call resolves after the second factor.