Skip to main content
The 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

This hook must be paired with para.onStatePhaseChange() to handle portal URLs that appear during authentication (verification, passkey, password, PIN). See Handling State Changes for the full state listener pattern.