Skip to content

Commit

Permalink
feat: clear tokens if expired
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Machado committed Jan 16, 2025
1 parent 84051ed commit 6b1d06f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/providers/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ client.interceptors.request.use(
if (dayjs().isAfter(dayjs(expiration))) {
// TODO
// Handle token refresh logic
clearTokens();
}

if (accessToken) {
Expand Down

0 comments on commit 6b1d06f

Please sign in to comment.