Skip to main content
Final Class Credentials for one verification session, read from an order’s payment.preparation.kyc.
Comes in one of two shapes: Persona credentials, built with the default constructor, or credentials for a Crossmint verification session, built with CrossmintIdentityVerificationCredentials.session. Equality compares every field, so a rotated session secret counts as new credentials.

Constructors

CrossmintIdentityVerificationCredentials

CrossmintIdentityVerificationCredentials.session

Credentials for a Crossmint verification session.

Properties

inquiryId

Persona inquiry identifier. null for session credentials.

sessionToken

Optional Persona session token. null for session credentials.

operator

hashCode

Static Methods

tryFromJson

Parses an order’s payment.preparation.kyc map. Returns null when the order does not need verification, or carries neither a usable session (verificationId and clientSecret) nor a usable Persona inquiry id.

Methods

toJson

Serializes to the shape the hosted page’s credentials query param expects: {verificationId, clientSecret, deviceSessionKey?} for session credentials, {provider: 'persona', inquiryId, sessionToken?} otherwise.