Skip to content

Commit 6b1d06f

Browse files
author
Guillermo Machado
committed
feat: clear tokens if expired
1 parent 84051ed commit 6b1d06f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/providers/auth.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ client.interceptors.request.use(
6161
if (dayjs().isAfter(dayjs(expiration))) {
6262
// TODO
6363
// Handle token refresh logic
64+
clearTokens();
6465
}
6566

6667
if (accessToken) {

0 commit comments

Comments
 (0)