Compare commits
2 Commits
b351d9f839
...
bb1dea088f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bb1dea088f | ||
![]() |
222f5acc20 |
@ -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, {
|
||||
|
@ -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=/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user