aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services/auth.service.ts
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-04-13 22:51:32 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-04-13 22:51:32 +0200
commitc6bc1bc4952173f61d1b1adf3b67cbd1c64e85b2 (patch)
treea03daa79ae991602853411597da77967c44df372 /frontend/src/app/_services/auth.service.ts
parent17d5ca0e942259e05e448044037048476c6d3c96 (diff)
parent5d856cf20177711074b473cc2d2133b85826fe63 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
Diffstat (limited to 'frontend/src/app/_services/auth.service.ts')
-rw-r--r--frontend/src/app/_services/auth.service.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/frontend/src/app/_services/auth.service.ts b/frontend/src/app/_services/auth.service.ts
index d5a16b5b..e474d436 100644
--- a/frontend/src/app/_services/auth.service.ts
+++ b/frontend/src/app/_services/auth.service.ts
@@ -52,7 +52,6 @@ export class AuthService {
var username = property['name'];
if (username != "") {
this.refresher = setTimeout(() => {
- console.log('refreshing token!');
this.http.post(`${API_SETTINGS.apiURL}/auth/renewJwt`, {}, { headers: this.authHeader(), responseType: 'text' }).subscribe((response) => {
this.authenticate(response);
});
@@ -60,7 +59,6 @@ export class AuthService {
}
else {
this.refresher = setTimeout(() => {
- console.log('refreshing token!');
this.getGuestToken().subscribe((response) => {
this.authenticate(response);
});
@@ -87,7 +85,6 @@ export class AuthService {
if (this.cookie.check('token')) {
const token = this.cookie.get('token');
const decodedToken = jwtHelper.decodeToken(token);
- console.log("decoded:", decodedToken);
this.shared.loggedIn = this.isAuthenticated();
this.shared.username = decodedToken.name;
this.shared.userId = decodedToken.id;