ff-admin-server/src/type/jwtTypes.ts

20 lines
391 B
TypeScript
Raw Normal View History

import { PermissionObject } from "./permissionTypes";
export type JWTData = {
2024-10-07 16:09:27 +00:00
[key: string]: string | number | boolean | PermissionObject;
};
export type JWTToken = {
userId: number;
mail: string;
username: string;
firstname: string;
lastname: string;
2024-10-07 16:09:27 +00:00
isOwner: boolean;
permissions: PermissionObject;
} & JWTData;
export type JWTRefresh = {
userId: number;
} & JWTData;