chore: set an expiry of 30 days for the access and refresh tokens (#3071)

This commit is contained in:
Aaryan Khandelwal 2023-12-11 22:25:48 +05:30 committed by GitHub
parent 0f752f93b6
commit f119d702c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {