Title: @clerk/expo: getToken({ skipCache: true }) fails on Expo while cached token fetch succeeds · Issue #8083 · clerk/javascript · GitHub
Open Graph Title: @clerk/expo: getToken({ skipCache: true }) fails on Expo while cached token fetch succeeds · Issue #8083 · clerk/javascript
X Title: @clerk/expo: getToken({ skipCache: true }) fails on Expo while cached token fetch succeeds · Issue #8083 · clerk/javascript
Description: Summary In an Expo repro app using @clerk/expo with Convex, cached token fetch works, but fresh token fetch fails. Specifically: cached token fetch succeeds fresh token fetch fails with: Clerk: Network request failed while offline. The b...
Open Graph Description: Summary In an Expo repro app using @clerk/expo with Convex, cached token fetch works, but fresh token fetch fails. Specifically: cached token fetch succeeds fresh token fetch fails with: Clerk: Net...
X Description: Summary In an Expo repro app using @clerk/expo with Convex, cached token fetch works, but fresh token fetch fails. Specifically: cached token fetch succeeds fresh token fetch fails with: Clerk: Net...
Opengraph URL: https://github.com/clerk/javascript/issues/8083
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@clerk/expo: getToken({ skipCache: true }) fails on Expo while cached token fetch succeeds","articleBody":"## Summary\n\nIn an Expo repro app using `@clerk/expo` with Convex, cached token fetch works, but fresh token fetch fails.\n\nSpecifically:\n\n- cached token fetch succeeds\n- fresh token fetch fails with:\n - `Clerk: Network request failed while offline. The browser appears to be disconnected.`\n - `(code=\"clerk_offline\")`\n\nThis leaves the app signed in at the Clerk level, but downstream Convex auth never completes.\n\n## Repro repo\n\nhttps://github.com/eliotgevers/convex-clerk-expo-token-refresh-repro\n\n## Environment\n\n- `@clerk/expo`: `3.1.2`\n- `convex`: `1.33.1`\n- Expo SDK: `55`\n- React Native: `0.83.2`\n- Reproduced in Expo iOS simulator\n\n## Reproduction steps\n\n1. Clone the repro repo.\n2. Fill in `.env` with a valid Clerk publishable key and Convex URL.\n3. Start the app.\n4. Sign in with an existing user.\n5. Tap `Probe cached token`.\n6. Tap `Probe fresh token`.\n\n## Expected\n\nBoth cached and fresh token fetches succeed.\n\n## Actual\n\nCached token succeeds, but fresh token fetch fails with `clerk_offline`.\n\n## Example result\n\n```text\nClerk signed in: true\nConvex loading: false\nConvex authenticated: false\nWebSocket connected: true\nLast cached token ok: 2:51:44 PM\nLast fresh token failed: 2:42:35 PM\n\nRecent events:\n- Fresh token failed: Clerk: Network request failed while offline. The browser appears to be disconnected.\n (code=\"clerk_offline\")\n```\n\n## Notes\n\n- The repro intentionally strips away app-specific backend bootstrapping so the failure stays focused on Clerk token fetch behavior.\n- If Clerk returns `needs_client_trust`, I disable Client Trust for the test app or use a trusted device. That is separate from the bug being reported here.\n","author":{"url":"https://github.com/eliotgevers","@type":"Person","name":"eliotgevers"},"datePublished":"2026-03-15T14:11:41Z","url":"https://github.com/clerk/javascript/issues/8083"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a733b8c-5371-fba9-777f-73f43dd8cc8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4BC:C4B81:1092D9D:16CFB5C:6AFB691E |
| html-safe-nonce | b15a1c28e9597214e074795ddde8baf38d65f403358cbf7fcb79af32cfa421fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEJDOkM0QjgxOjEwOTJEOUQ6MTZDRkI1Qzo2QUZCNjkxRSIsInZpc2l0b3JfaWQiOiIyNDIxNjk4MTkwNDUwMDU5NTUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 122761504990b45640aca0b5e664ca5c96a218e5023905cb779c8b6225a4a4b9 |
| hovercard-subject-tag | issue:4078458006 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/8083/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e46a9e7647f100b45137b9b53c455af200187148d1cb1acbe014dc608bc90240/clerk/javascript/issues/8083 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e46a9e7647f100b45137b9b53c455af200187148d1cb1acbe014dc608bc90240/clerk/javascript/issues/8083 |
| og:image:alt | Summary In an Expo repro app using @clerk/expo with Convex, cached token fetch works, but fresh token fetch fails. Specifically: cached token fetch succeeds fresh token fetch fails with: Clerk: Net... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eliotgevers |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/clerk/javascript git https://github.com/clerk/javascript.git |
| octolytics-dimension-user_id | 49538330 |
| octolytics-dimension-user_login | clerk |
| octolytics-dimension-repository_id | 438331492 |
| octolytics-dimension-repository_nwo | clerk/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438331492 |
| octolytics-dimension-repository_network_root_nwo | clerk/javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width