Skip to content

Commit 22c6be7

Browse files
author
Nicole Garcia
committed
fix localstorage key
1 parent a052336 commit 22c6be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modules/login/services/login.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class LoginService {
4747
const user = JSON.parse(token);
4848
return user && this.cookieService.check('idtoken') ? of(true) : of(false);
4949
} else {
50-
return of(true);
50+
return token ? of(true) : of(false);
5151
//return this.isValidToken(token);
5252
}
5353
}
@@ -109,7 +109,7 @@ export class LoginService {
109109
}
110110

111111
setCookies() {
112-
this.cookieService.set('idtoken', this.getLocalStorage('idToken'), 30);
112+
this.cookieService.set('idtoken', this.cookieService.get('session'), 30);
113113
}
114114

115115
getLocalStorage(key: string) {

0 commit comments

Comments
 (0)