You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
The Convex integration wasn't properly handling token refresh requests. When Convex called `fetchAccessToken({ forceRefreshToken: true })`, the implementation ignored this parameter and returned a stale cached token, causing authentication failures after token expiry.
## Solution
- Implemented proper handling of the `forceRefreshToken` parameter
- When `forceRefreshToken: true`, calls WorkOS's `refresh()` to get a new token
- When `forceRefreshToken: false`, uses `getAccessToken()` which auto-refreshes if needed
- Removed problematic token caching that was preventing refresh
- Fixed loading state calculation to prevent blank pages during token refresh
0 commit comments