🔐 General Wisdom JWT Session Validator

Demo application for validating session JWTs from General Wisdom platform

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

  1. Extract JWT from URL:
    const token = new URLSearchParams(window.location.search).get('gwSession');
  2. 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
  3. Verify required claims (Platform Security):
    • iss must equal "generalwisdom.com"
    • exp must be in the future (not expired)
    • applicationId must match your application ID
  4. 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.