Server SDK Reference
This page documents the full server-side API for the Persona Relay SDK for Node.js.
Installation
Available on npm: @persona/relay-sdk-node
npm
yarn
Constructor
Persona
Arguments
Methods
Relay methods are available on the persona.relays namespace.
create
Creates a Persona relay session. No API key required.
Arguments
Returns
issuePrivacyPass
Runs the full blind RSA issuance flow and returns a Privacy Pass token. The SDK handles all cryptography internally.
How does this work?
Curious how the Privacy Pass protocol works under the hood? See Privacy Pass Protocol for a full walkthrough — relevant if you’re implementing this yourself without the SDK.Arguments
Returns
generateClaim
Redeems 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
Error handling
All Persona API errors and network failures throw a subtype of PersonaError.
See PersonaError for the full error class definition.

