Verify JWT Locally
Verify a session JWT locally
Verify a session JWT locally using the ES256 algorithm and a public key.
Verification Process
To verify a JWT locally, you'll need:
The JWT token to verify
The public key in PEM format (base64 encoded)
Parameters
Example Usage
Error Cases
Verification will throw an error if:
The JWT format is invalid
The signature is invalid
The token has expired (due to logout for example)
The algorithm doesn't match (must be ES256)
Last updated