mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
Fixing logout after browser close.
This commit is contained in:
parent
64c0f7ed6e
commit
1e9cd32e1d
@ -20,7 +20,7 @@ export class UserService {
|
||||
|
||||
public login(res: LoginResponse) {
|
||||
this.setUser(res.jwt);
|
||||
Cookies.set("jwt", res.jwt);
|
||||
Cookies.set("jwt", res.jwt, { expires: 365 });
|
||||
console.log("jwt cookie set");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user