Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix localstorage key
  • Loading branch information
Nicole Garcia committed Nov 16, 2022
commit 22c6be7df59bfe308e89152e0b9c147685daf7c3
4 changes: 2 additions & 2 deletions src/app/modules/login/services/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class LoginService {
const user = JSON.parse(token);
return user && this.cookieService.check('idtoken') ? of(true) : of(false);
} else {
return of(true);
return token ? of(true) : of(false);
//return this.isValidToken(token);
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@ export class LoginService {
}

setCookies() {
this.cookieService.set('idtoken', this.getLocalStorage('idToken'), 30);
this.cookieService.set('idtoken', this.cookieService.get('session'), 30);
}

getLocalStorage(key: string) {
Expand Down