- Decode and validate JWT payload to detect expired or near-expiring tokens. - Implement `refreshAccessToken` using Keycloak endpoints for seamless token refresh. - Modify `serverCall` to refresh and update token dynamically before API requests. - Improve error logging for token decoding and refresh operations.
4.3 KiB
4.3 KiB