mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +00:00
Fixing logout after browser close.
This commit is contained in:
parent
0c89ea980c
commit
aae235279e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export class UserService {
|
||||||
|
|
||||||
public login(res: LoginResponse) {
|
public login(res: LoginResponse) {
|
||||||
this.setUser(res.jwt);
|
this.setUser(res.jwt);
|
||||||
Cookies.set("jwt", res.jwt);
|
Cookies.set("jwt", res.jwt, { expires: 365 });
|
||||||
console.log("jwt cookie set");
|
console.log("jwt cookie set");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue