Skip to content

Commit

Permalink
fix: auth token expires time
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Aug 27, 2022
1 parent d0f1d4f commit e177d26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function setToken(token: string) {
if (typeof token !== 'string') {
return
}
return Cookies.set(TokenKey, token)
return Cookies.set(TokenKey, token, {
expires: 14,
})
}

export function removeToken() {
Expand Down

0 comments on commit e177d26

Please sign in to comment.