Skip to content

fix: gracefully logout on refresh token failure#379

Merged
jjoonleo merged 1 commit into
mainfrom
codex/graceful-refresh-token-logout
May 6, 2026
Merged

fix: gracefully logout on refresh token failure#379
jjoonleo merged 1 commit into
mainfrom
codex/graceful-refresh-token-logout

Conversation

@jjoonleo

@jjoonleo jjoonleo commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • route refresh-token 401 failures through local repository sign-out so auth state updates immediately
  • avoid invoking full sign-out cleanup from inside the token refresh interceptor
  • add a regression test for protected-request 401 followed by refresh-token 401

Tests

  • flutter test test/core/dio/interceptors/token_interceptor_test.dart
  • flutter analyze

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit e147fec):

https://ontime-c63f1--pr379-codex-graceful-refre-loz0mmht.web.app

(expires Wed, 13 May 2026 18:03:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7d60a2eae4c4a5839220ed6a57552a3b61cce5a3

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit e147fec):

https://on-time-front-widgetbook--pr379-codex-graceful-refre-iur1btxw.web.app

(expires Wed, 13 May 2026 18:04:19 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e53128a376fed0209d449279de9c0d94c83cdd8b

@jjoonleo jjoonleo merged commit 3983c83 into main May 6, 2026
4 checks passed
@jjoonleo jjoonleo deleted the codex/graceful-refresh-token-logout branch May 6, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant