ff-admin-server/src/type/jwtTypes.ts
2024-10-07 18:09:27 +02:00

19 lines
391 B
TypeScript

import { PermissionObject } from "./permissionTypes";
export type JWTData = {
[key: string]: string | number | boolean | PermissionObject;
};
export type JWTToken = {
userId: number;
mail: string;
username: string;
firstname: string;
lastname: string;
isOwner: boolean;
permissions: PermissionObject;
} & JWTData;
export type JWTRefresh = {
userId: number;
} & JWTData;