]> Untitled Git - lemmy-ui.git/commitdiff
Updating claims.
authorDessalines <tyhou13@gmx.com>
Fri, 19 Mar 2021 14:22:47 +0000 (10:22 -0400)
committerDessalines <tyhou13@gmx.com>
Fri, 19 Mar 2021 14:22:47 +0000 (10:22 -0400)
src/shared/services/UserService.ts
tsconfig.json

index acef3616e55fa594a8b59ef876e5b75bfc915d82..286b468c753324777aa354d721532866a5390800 100644 (file)
@@ -5,8 +5,9 @@ import jwt_decode from "jwt-decode";
 import { Subject, BehaviorSubject } from "rxjs";
 
 interface Claims {
-  local_user_id: number;
+  sub: number;
   iss: string;
+  iat: number;
 }
 
 export class UserService {
index aae5ae70e7e717e6e74d8c46c964dbbf91dd120f..cd9bc8d0b35161873a380449592f00244a6bedbc 100644 (file)
@@ -22,6 +22,6 @@
        },\r
        "include": [\r
                "src/**/*",\r
-               "node_modules/inferno/dist/index.d.ts",\r
+               "node_modules/inferno/dist/index.d.ts"\r
        ]\r
 }\r