github clerk/javascript @clerk/clerk-js@5.59.0

latest releases: @clerk/types@4.92.0, @clerk/clerk-js@5.99.0, @clerk/fastify@2.4.37...
7 months ago

Minor Changes

  • Improve session refresh logic. (#5397) by @panteliselef

    • Switched from interval-based polling to timeout-based polling, ensuring retries for a getToken() call complete before the next poll begins.
    • Clerk.handleUnauthenticated() now sets the session to null when a /client request returns a 500 status code, preventing infinite request loops.
    • Improved error handling: If the /client request fails during initialization, the poller stops, a dummy client is created, a manual request to /tokens is attempted, and polling resumes.
  • Expose retryAfter value on ClerkAPIResponseError for 429 responses. (#5480) by @dstaley

Patch Changes

Don't miss a new javascript release

NewReleases is sending notifications on new releases.