Skip to main content
The Para Flutter SDK enables you to integrate secure wallet features including creation, passkey-based authentication, and transaction signing into your mobile applications. This guide covers all necessary steps from installation to implementing authentication flows.

Prerequisites

To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.
Don’t have an API key yet? Request access to the to create API keys, manage billing, teams, and more.

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.
  1. In Xcode, select your project in the navigator
  2. Select your app target
  3. Go to the Info tab
  4. Scroll down to URL Types and click + to add a new URL type
  5. 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
Make sure your URL scheme is unique to avoid conflicts with other apps. Use a scheme related to your app’s bundle ID (e.g., com.mycompany.myapp) for uniqueness.

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:
To enable passkeys on iOS, you need to configure Associated Domains:
  1. Open your Flutter project’s iOS folder in Xcode
  2. In Xcode, go to Signing & Capabilities for your app target
  3. Click + Capability and add Associated Domains
  4. Add the following entries:
  5. Register your Team ID + Bundle ID with Para via the
Without properly registering your Team ID and Bundle ID with Para, passkey authentication flows will fail. Contact Para support if you encounter issues with passkey registration.
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
You can access para from anywhere in your app by importing the file where you initialized it. This singleton pattern ensures consistent state management across your application.

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:
  • authenticateWithEmailOrPhone for email and phone (below)
  • authenticateWithOAuth for social providers ()
  • authenticateWithExternalWallet for wallets like MetaMask ()
If your app turns on login two-factor authentication, 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.
Create a single 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
Call authenticateWithEmailOrPhone 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.
    Every email or phone sign-in starts with the code, for new and returning users alike. A returning user whose account is protected by a passkey verifies their email or phone on the code page first, and the page then hands the user back to your app to sign in with the native passkey prompt. That passkey must belong to the account that was verified. A returning password user unlocks on a Para-hosted page. verificationCodeProvider isn’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 verificationCodeProvider isn’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, isNewUser isn’t reliable. Keep verificationCodeProvider in place: the SDK still requires it. None of this applies on the updated flow.
In both cases Para creates the user’s wallets before the call returns.

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. Call logout() 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_failed for a returning user, signup_failed for a new user).
  • Your verificationCodeProvider throws. 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 .
See for the full list. After a failure the SDK resets the in-progress sign-in, so you can call 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 prefer authenticateWithEmailOrPhone. 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 call handleSignup. 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 to handleLogin 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.

Example

For a complete implementation example, check out our Flutter SDK example app:

Next Steps

After setup, use these guides for wallet signing flows.