mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: set an expiry of 30 days for the access and refresh tokens (#3071)
This commit is contained in:
parent
0f752f93b6
commit
f119d702c7
@ -10,7 +10,7 @@ export abstract class APIService {
|
||||
}
|
||||
|
||||
setRefreshToken(token: string) {
|
||||
Cookies.set("refreshToken", token);
|
||||
Cookies.set("refreshToken", token, { expires: 30 });
|
||||
}
|
||||
|
||||
getRefreshToken() {
|
||||
@ -22,7 +22,7 @@ export abstract class APIService {
|
||||
}
|
||||
|
||||
setAccessToken(token: string) {
|
||||
Cookies.set("accessToken", token);
|
||||
Cookies.set("accessToken", token, { expires: 30 });
|
||||
}
|
||||
|
||||
getAccessToken() {
|
||||
|
Loading…
Reference in New Issue
Block a user