Sign Testing JWT
Crypto
Sign Testing JWT
Generate a signed RS256 JWT for development and testing
POST
Sign Testing JWT
Signs a short-lived JWT (5 minutes) using your project’s RSA private key. Use this during development to generate tokens for testing external auth without needing to implement JWT signing in your test environment.Documentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
Body Parameters
Your RSA private key encoded as a Base64 string. This is the private key associated with the public key configured in your project’s external auth settings.
The JWT payload. Must include at least an
id field (the user’s ID in your system). All fields are included in the userData claim.The project ID. Can be provided in the body or as a URL path parameter (
:projectId). The body value takes precedence if both are provided.Response
Returns the signed JWT as a plain text string (not JSON):RS256, expires in 5 minutes, and includes:
sub— the user’sidfrom the payloadiss— the project IDaud—"replyke.com"userData— the full payload object
Error Responses
Missing Parameters — 400
Missing Parameters — 400
projectId, privateKey, or payload is missing.Missing User ID — 400
Missing User ID — 400
payload object does not include an id field.
