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.
Parameters
Section titled “Parameters”apiKey
Section titled “apiKey”string
The API key for the verifier API.
verifierUrl?
Section titled “verifierUrl?”URL
The base URL for the verifier API. Defaults to the production API.
options?
Section titled “options?”Optional session creation parameters (e.g., jurisdictions filter).
Returns
Section titled “Returns”Promise<SessionCreationData>