This page documents the full server-side API for the Persona Relay SDK for Node.js.
Available on npm: @persona/relay-sdk-node
PersonaArguments
Relay methods are available on the persona.relays namespace.
createCreates a Persona relay session. No API key required.
Arguments
Returns
issuePrivacyPassRuns the full blind RSA issuance flow and returns a Privacy Pass token. The SDK handles all cryptography internally.
Arguments
Returns
generateClaimRedeems the Privacy Pass token against Persona and returns the claim payload.
If you created the relay session with an encryptionKeyPem, claimPayload will be a base64-encoded RSA-OAEP ciphertext. Decrypt it with your corresponding private key.
Arguments
Returns
All Persona API errors and network failures throw a subtype of PersonaError.
See PersonaError for the full error class definition.