Skip to main content
Version: v2

Backend

The SDK doesn't create transactions, and doesn't need a proxy. Your backend creates the transaction, and your app passes the result to the SDK.

When the user starts a verification, your backend:

  1. Makes sure that the user is authenticated.
  2. Collects the user's consent, if you haven't already.
  3. Calls POST /api/v2/transaction on the Agent API, with the workflow ID, "platform": "Ios", and the consent.
  4. Returns the sdkConfiguration from the response to your app.

Your API credentials never leave your backend. Pass sdkConfiguration to the SDK as it is; don't parse or modify it. It authorizes the SDK for this one transaction, so treat it as a secret, and don't log it.

For an example backend, see No proxy in the migration guide.