]> Untitled Git - lemmy.git/commitdiff
Fixing logout after browser close.
authorDessalines <tyhou13@gmx.com>
Mon, 19 Aug 2019 22:22:05 +0000 (15:22 -0700)
committerDessalines <tyhou13@gmx.com>
Mon, 19 Aug 2019 22:22:05 +0000 (15:22 -0700)
ui/src/services/UserService.ts

index 92315db7bd684a61aeb509b205f4971880f3f83d..4a75b85a2cc587503b357caacc2eed0273466630 100644 (file)
@@ -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");
   }