Compare commits

..

No commits in common. "bb1dea088f7ae4382da33e8bf7bf86b16c1e7091" and "b351d9f8396d7ec56d8b6712583af3e93f45372b" have entirely different histories.

2 changed files with 6 additions and 1 deletions

View File

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

View File

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