feat: refresh PocketBase auth tokens automatically #4

Merged
joshuafhiggins merged 2 commits from t3/pocketbase-token-refresh into t3/upgrade-expo-sdk-58 2026-10-22 18:55:55 -04:00
Owner

Summary

  • Refresh PocketBase tokens before expiry and when requests receive a 401.
  • Persist refreshed credentials and retain the session across transient refresh failures.
  • Sign out when the server rejects a revoked session.

Testing

  • Not run
## Summary - Refresh PocketBase tokens before expiry and when requests receive a 401. - Persist refreshed credentials and retain the session across transient refresh failures. - Sign out when the server rejects a revoked session. ## Testing - Not run
joshuafhiggins added 1 commit 2026-10-22 18:37:39 -04:00
- Refresh tokens before expiry and retry requests after 401 responses
- Persist refreshed sessions and handle revoked tokens
joshuafhiggins added 1 commit 2026-10-22 18:43:35 -04:00
Keep automatic token refresh and clear the device widget on logout.

Co-authored-by: Cursor <cursoragent@cursor.com>
joshuafhiggins merged commit 6fd9e1fee4 into t3/upgrade-expo-sdk-58 2026-10-22 18:55:55 -04:00
Sign in to join this conversation.