useSignUpOrLogIn hook initiates the Para signup or login flow for a given email or phone number.
For new integrations, use
useAuthenticateWithEmailOrPhone with supportsAuthV2: true. It runs the whole sign-in and resolves when the user is logged in.supportsAuthV2), it returns, for every email or phone, a verify stage with a loginUrl: a Para-hosted page that sends and checks the code, then signs the user in or creates their account. Open loginUrl in an in-app browser with your app’s nativeCallbackUrl, then wait with useWaitForLogin. If the page returns with status=PASSKEY_REQUIRED, call loginWithPasskey() instead. A repeat sign-in from a session that already entered the code can return a login stage instead. See Email & Phone Login.
Import
Usage
useSignUpOrLogIn only starts the sign-in. For a custom UI, useAuthenticateWithEmailOrPhone runs the whole flow, including the session wait and wallet creation, in one call.