Compare commits

..

2 Commits

Author SHA1 Message Date
Omar Oughriss
bb1dea088f Update cookie
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-image-lecoffre (push) Successful in 16s
Demo - Build & Deploy to Scaleway / deploy-to-scaleway-lecoffre (push) Successful in 3s
2025-07-25 17:02:51 +02:00
Omar Oughriss
222f5acc20 Delete logs 2025-07-25 17:02:44 +02:00
2 changed files with 1 additions and 6 deletions

View File

@ -46,11 +46,6 @@ export default abstract class BaseApiService {
}
protected async getRequest<T>(url: URL, token?: string, contentType?: ContentType, ref?: IRef, fileName?: string) {
console.log("url", url);
console.log("token", token);
console.log("contentType", contentType);
console.log("ref", ref);
console.log("fileName", fileName);
await this.checkJwtToken();
const request = async () =>
await fetch(url, {

View File

@ -15,7 +15,7 @@ export default class CookieService {
const date = new Date();
// Set it expire in 7 days
date.setTime(date.getTime() + 7 * 24 * 60 * 60 * 1000);
date.setTime(date.getTime() + 3 * 60 * 1000);
// Set it
document.cookie = name + "=" + value + "; expires=" + date.toUTCString() + "; path=/";