issueCredentialandverifyCredentialin the SDK- Direct issuance through the AIR API
loginon Flutter, andloginwith Custom Auth on Web
JWT requirements
To learn more about JWTs, see jwt.io.
Next.js Partner JWT endpoint
Installjose:
scope: "verify" for verification.
app/api/partner-jwt/route.ts
PARTNER_PRIVATE_KEY server-only. This example uses the Partner ID as the kid, matching the JWKS route.
Generating an RS256 key pair
Generate a private key and extract its public key with OpenSSL:private.key and keep it secret. Publish public.key through your JWKS endpoint.
Examples
Sign a Partner JWT in other backend languages. Each example signs an issuance token with RS256; changescope for verification.
- Node.js
- Java
- C#
- Go
your-partner-id, your-key-id, and the key paths with your own values. For ES256, use the matching signing method and an EC key.