Add post, inbox, and user routes.
This commit is contained in:
parent
bfce461a14
commit
95b74ad74c
10 changed files with 509 additions and 512 deletions
|
@ -31,7 +31,9 @@ export class UserService {
|
|||
|
||||
public login(res: LoginResponse) {
|
||||
this.setClaims(res.jwt);
|
||||
IsomorphicCookie.save('jwt', res.jwt, { expires: 365 });
|
||||
let expires = new Date();
|
||||
expires.setDate(expires.getDate() + 365);
|
||||
IsomorphicCookie.save('jwt', res.jwt, { expires });
|
||||
console.log('jwt cookie set');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue