Skip to content

fetchSessionData

fetchSessionData(apiKey, verifierUrl?, options?): Promise<SessionCreationData>

Creates a new session with the verifier API. This is meant to be done on the backend to avoid leaking the API key.

string

The API key for the verifier API.

URL

The base URL for the verifier API. Defaults to the production API.

FetchSessionOptions

Optional session creation parameters (e.g., jurisdictions filter).

Promise<SessionCreationData>