diff --git a/web/services/api.service.ts b/web/services/api.service.ts index 621bac767..23be79929 100644 --- a/web/services/api.service.ts +++ b/web/services/api.service.ts @@ -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() {