Token management

Last update:
Aug 24, 2026
  1. How do I retrieve OIDC tokens (Access, Refresh, ID Token)?
    After receiving the authorization code from the authorization endpoint callback, make a backchannel POST request to the token endpoint with the authorization code, client ID, client secret, and redirect URI to receive the tokens.
  2. How do I verify the ID token signature?
    Use the JWK Set from the jwks_uri endpoint to verify the ID Token signature. The endpoint provides public keys for RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, and PS512 algorithms.
  3. Should I cache the JWK Set response?
    Yes, implement caching for the jwks_uri response with a TTL of at least 1 hour to reduce unnecessary calls and improve performance.
  4. How do I refresh an expired access token?
    Use the refresh token with the token endpoint by including grant_type=refresh_token and the refresh token value. Note that refresh tokens are one-time use. Store the new refresh token returned in the response.
  5. How do I revoke a token?
    Make a POST request to the revocation endpoint with the token you want to revoke and specify the token_type_hint (either "access_token" or "refresh_token").
    Reference: Revoking token

On this page

Powered by Aikyam @2025 All rights reserved