Description
This method allows partners to offload identity and session management by integrating Privy SDK directly into their client application. Wirex Pay provides a dedicated AppId
that enables Privy to handle login, identity verification, and session persistence on behalf of the partner.
Key Benefits
- No need to implement or maintain a custom login flow.
- Privy handles user authentication and provides tokens required for authorized API calls.
- Reduced compliance and data handling overhead for the partner.
Typical Flow
- Integrate the Privy SDK using the AppId provided by Wirex Pay. For details on integrating SDK please follow Privy SDK docs
- Onboard the user via Privy to obtain access and identity tokens. Please note that as a result of onboarding the registered user must have a linked email account and either a linked or an embedded wallet.
- Register the user by making client-side API call to Create retail user with necessary data.
- Exchange Privy tokens for a Wirex Pay Token (see Authorization > Wirex Pay Token).
- Use the Wirex Pay Token to complete onboarding and initiate other user-specific operations (e.g., card activation, transaction initiation).