Compare commits
No commits in common. "bb1dea088f7ae4382da33e8bf7bf86b16c1e7091" and "b351d9f8396d7ec56d8b6712583af3e93f45372b" have entirely different histories.
bb1dea088f
...
b351d9f839
@ -46,6 +46,11 @@ 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, {
|
||||
|
@ -15,7 +15,7 @@ export default class CookieService {
|
||||
const date = new Date();
|
||||
|
||||
// Set it expire in 7 days
|
||||
date.setTime(date.getTime() + 3 * 60 * 1000);
|
||||
date.setTime(date.getTime() + 7 * 24 * 60 * 60 * 1000);
|
||||
|
||||
// Set it
|
||||
document.cookie = name + "=" + value + "; expires=" + date.toUTCString() + "; path=/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user