Skip to content

Commit

Permalink
update cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 30, 2024
1 parent 019cbda commit 1c3d312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ function ContextProvider({ children }: any) {
} else {
const token = getItem('token')
if (token) {
setLogoutTimeout(new Date(JSON.parse(token).exprire).getTime() - Date.now())
const t = localStorage.getItem('token') as string
setLogoutTimeout(new Date(JSON.parse(t).exprire).getTime() - Date.now())
await getProfile(token)
}
}
Expand Down

0 comments on commit 1c3d312

Please sign in to comment.