Add post, inbox, and user routes.

This commit is contained in:
Dessalines 2020-09-08 19:48:17 -05:00
parent bfce461a14
commit 95b74ad74c
10 changed files with 509 additions and 512 deletions

View file

@ -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');
}