Once a user is signed in, you can request a Para JWT token. This token will provide attestations for the user’s ID, their identity, any wallets they have provisioned via your application, and any connected wallets in their current session.Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
Requesting a JWT Token
You can request a JWT token using either the client method or the React hook. Both approaches return the token itself as well as the JWKS key ID (kid) for the keypair that signed it.
Client Method
React Hook
The token’s expiry will be determined by your customized session length, or else will default to 30 minutes. Issuing a token, like most authenticated API operations, will also renew and extend the session for that duration.
Token Structure
Depending on the user in question, a decoded token payload might resemble the following:JWKS Verification
Para’s JSON Web Keys Set (JWKS) file(s) are available at the following URLs:| Environment | JWKS URL |
|---|---|
| BETA | https://api.beta.getpara.com/.well-known/jwks.json |
| PROD | https://api.getpara.com/.well-known/jwks.json |
Best Practices
- Session Verification: For security-critical operations, verify JWT tokens on both client and server sides
- Token Expiry: Be aware that tokens expire based on your session configuration and plan accordingly
- Secure Storage: Never store JWT tokens in insecure locations like localStorage for sensitive applications