useAuthenticateWithEmailOrPhone hook handles the entire email or phone authentication flow — signup or login, verification, session waiting, and wallet creation — in a single call. It requires you to listen for state phase changes to handle the portal URLs that appear during the flow.
Import
Usage
SetsupportsAuthV2: true in your ParaMobile options. Every email or phone sign-in starts on a Para-hosted code page, so listen for state changes and open the page with your app’s deep link as nativeCallbackUrl:
supportsAuthV2.
This hook must be paired with
para.onStatePhaseChange() to open the Para-hosted pages that appear during authentication: the code page (verificationUrl), a returning user’s passkey page, and, for a new account, the passkey, password, or PIN creation pages. See Handling State Changes for the full state listener pattern.