Prerequisites
To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.Install the SDK
Start by installing the Para SDK:Configure URL Scheme
Configure your app’s URL scheme. Para uses it to return to your app from Para-hosted sign-in pages, OAuth providers, and external wallets.- iOS
- Android
- In Xcode, select your project in the navigator
- Select your app target
- Go to the Info tab
- Scroll down to URL Types and click + to add a new URL type
- Fill in the fields:
- URL Schemes: Enter your scheme name (e.g.,
yourapp,myflutterapp) - Role: Select Editor
- Identifier: Use your bundle identifier or a descriptive name
- URL Schemes: Enter your scheme name (e.g.,
Optional: Configure Passkeys
Enable passkeys only if you’ve turned them on in the Para Developer Portal. When they’re on, new users create a passkey with the native passkey prompt and returning passkey users sign in with it. Configure both iOS and Android platforms:- iOS
- Android
To enable passkeys on iOS, you need to configure Associated Domains:
- Open your Flutter project’s iOS folder in Xcode
- In Xcode, go to Signing & Capabilities for your app target
- Click + Capability and add Associated Domains
- Add the following entries:
- Register your Team ID + Bundle ID with Para via the
Prepping for review? See for Sign in with Apple and reviewer guidance.
Initialize Para
To use Para’s features, you’ll need to initialize a Para client instance that can be accessed throughout your app. This client handles all interactions with Para’s services, including authentication, wallet management, and transaction signing. Create a file (e.g.,lib/services/para_client.dart) to initialize your Para client:
lib/services/para_client.dart
Authenticate Users
Para supports email, phone, social, and external wallet sign-in. Each method has a single call that runs the whole sign-in, including wallet creation for new users:authenticateWithEmailOrPhonefor email and phone (below)authenticateWithOAuthfor social providers ()authenticateWithExternalWalletfor wallets like MetaMask ()
authenticateWithEmailOrPhone and authenticateWithOAuth complete it on Para’s updated authentication flow. See .
Beta Testing Credentials In the
BETA Environment, you can use any email ending in @test.getpara.com (like
dev@test.getpara.com) or US phone numbers (+1) in the format (area code)-555-xxxx (like (425)-555-1234). Any OTP
code will work for verification with these test credentials. These credentials are for beta testing only. You can
delete test users anytime in the beta developer console to free up user slots.FlutterWebAuthSession and reuse it for every sign-in call. Para-hosted pages open in it and return to your app through your URL scheme.
lib/views/authentication_view.dart
Authenticate with a Single Call (Recommended)
CallauthenticateWithEmailOrPhone with the user’s email or phone. It works for both new and returning users and returns an AuthenticationResult:
What the user sees
Para decides which sign-in experience runs for your app. You don’t configure or detect it, so build for both:-
Para’s updated authentication flow. The user verifies their email or phone on a Para-hosted page shown in the
webAuthenticationSession. A new user then creates their first credential:- When your app offers passkeys and the device can create one (on iOS, the device needs a passcode), the device shows the native passkey prompt.
- Otherwise the user sets a password, or a PIN if your app offers only PINs, on a Para-hosted page. If your app offers only passkeys, the SDK still shows the native passkey prompt.
- Closing the setup page or the passkey prompt cancels sign-in.
verificationCodeProviderisn’t called on this flow. -
The earlier flow (fallback). If the updated flow isn’t enabled for your app, every email or phone sign-in still goes through the Para-hosted code page: sign-in doesn’t say whether an account exists until the code is entered, so
verificationCodeProviderisn’t called. A returning user whose account is protected by a native passkey gets an error asking them to sign in again; signing in again then shows the native passkey prompt. On this fallback,isNewUserisn’t reliable. KeepverificationCodeProviderin place: the SDK still requires it. None of this applies on the updated flow.
Example: verification-code dialog
verificationCodeProvider returns a Future<String>, so it can wait for the user. This example shows a dialog that returns the code, and throws when the user cancels, which cancels sign-in.
lib/views/authentication_view.dart
Handle errors
authenticateWithEmailOrPhone throws when sign-in can’t finish. Most failures are a ParaBridgeException with a code:
- A user is already signed in (
already_authenticated). The call throws instead of starting a new sign-in. Calllogout()first. - The user closes a Para-hosted page (
auth_cancelled). - The user cancels the passkey prompt (
passkey_cancelled). - The user closes the password page during code-entry sign-in (
login_failedfor a returning user,signup_failedfor a new user). - Your
verificationCodeProviderthrows. The call rethrows your error unchanged and cancels sign-in. - The wrong passkey (
passkey_account_mismatch). The user picked a passkey that belongs to a different account. That sign-in is discarded, and the user can try again. - Too many incorrect codes. After Para’s retry limit, the call throws the last verification error.
- The account requires login 2FA (
two_factor_required) during code-entry sign-in. See .
authenticateWithEmailOrPhone again right away.
Manual Stage-Based Flow
Use the stage-based methods when you need to control each step yourself, such as choosing between passkey and password signup in your own UI. These methods keep working unchanged and always run the code-entry flow described above. They don’t use Para’s updated authentication flow, so new integrations should preferauthenticateWithEmailOrPhone.
Which steps your users see depends on the sign-in and security settings you choose for your app in the . With the default settings, Para hosts the whole flow through One Click Login: as soon as you receive an AuthState, check for loginUrl and complete the hosted flow before falling back to other methods.
lib/views/authentication_view.dart
Optional: Passkey/Password Signup
If your app’s settings require passkeys or passwords, handle the verification stage and callhandleSignup. handleSignup also creates the new user’s wallets.
lib/views/authentication_view.dart
Returning Users
Existing users follow the same One-Click-first flow. If your app’s settings require passkeys or passwords, fall back tohandleLogin after the One-Click block. You can also call loginWithPasskey directly when you know a user has registered one.
Check Authentication Status
You can check if a user is already authenticated:lib/views/content_view.dart
Sign Out Users
To sign out a user and clear their session:lib/views/settings_view.dart
Create and Manage Wallets
After successful authentication, you can perform wallet operations:lib/views/wallet_view.dart
A user signed in with
authenticateWithExternalWallet on Para’s updated authentication flow has a verify-only session: it has no embedded Para wallets to sign with. Sign with their external wallet instead (see ).For transaction signing by chain, use the EVM, Solana, Cosmos, and Stellar guides.