diff --git a/frontend/static/js/api/client.js b/frontend/static/js/api/client.js index 8d2c10e..a66fd59 100644 --- a/frontend/static/js/api/client.js +++ b/frontend/static/js/api/client.js @@ -5,7 +5,7 @@ function extract_token(response) let cookies = response.headers.get("set-cookie"); if (cookies == null) return null; - token = cookies.slice(cookies.indexOf("=") + 1, cookies.indexOf(';')) + let token = cookies.slice(cookies.indexOf("=") + 1, cookies.indexOf(';')) return token; } @@ -18,7 +18,7 @@ class Client this._token = undefined; } - get isAuthentificate() + isAuthentificate() { return this.token != undefined; }