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 Developer Portal 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 for OAuth authentication flows. This enables OAuth providers to redirect back to your app after authentication.- 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.,
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.Configure Associated Domains for Passkeys
To enable passkeys in your Flutter project, you need to configure both iOS and Android platforms: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 Developer Portal
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.
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 provides a unified authentication experience that supports email, phone, and social login methods. The SDK automatically determines whether a user is new or existing and guides you through the appropriate flow.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.Build Your Authentication Flow
The recommended approach is to create a single authentication view that handles all authentication methods together. This provides users with all authentication options in one place.Para supports authentication with both email addresses and phone numbers.
1
Handle Email/Phone Submission
Initiate authentication with email or phone:
lib/views/authentication_view.dart
2
Handle OTP Verification
For new users who need verification, handle the OTP flow:
lib/views/authentication_view.dart
Handle Returning Users
After initial setup, users can log in using their email or phone with the same authentication flow:lib/views/login_view.dart
lib/views/login_view.dart
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
For detailed transaction signing with specific blockchains (EVM, Solana, Cosmos), please refer to the respective blockchain integration guides.