1. Enter Session JWT
Paste the JWT token you received from General Wisdom (from
?jwt= query parameter or session creation response)
📖 How to Integrate with Your Application
-
Extract JWT from URL:
const token = new URLSearchParams(window.location.search).get('gwSession'); -
Validate signature using JWKS endpoint:
// Server-side validation required! // Use libraries: jsonwebtoken + jwks-rsa (Node.js) // JWKS endpoint: https://api.generalwisdom.com/.well-known/jwks.json
-
Verify required claims (Platform Security):
-
issmust equal"generalwisdom.com" expmust be in the future (not expired)-
applicationIdmust match your application ID
-
-
Extract session data:
const sessionData = { sessionId: claims.sessionId, userId: claims.userId, orgId: claims.orgId, expiresAt: new Date(claims.exp * 1000) };
🔒 Security Note: Always validate JWT signatures on
your server. Never trust client-side decoding alone. Use the JWKS
endpoint to retrieve the public key and verify the RS256 signature.