From: Dessalines Date: Mon, 19 Aug 2019 22:22:05 +0000 (-0700) Subject: Fixing logout after browser close. X-Git-Url: http://these/git/%7Bthis.props.site.site.icon%7D?a=commitdiff_plain;h=1e9cd32e1dca2489740d9b4dae72974ac6d19a35;p=lemmy.git Fixing logout after browser close. --- diff --git a/ui/src/services/UserService.ts b/ui/src/services/UserService.ts index 92315db7..4a75b85a 100644 --- a/ui/src/services/UserService.ts +++ b/ui/src/services/UserService.ts @@ -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"); }