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 18:09:27 +02:00
[key: string]: string | number | boolean | PermissionObject;
};
export type JWTToken = {
2025-01-29 08:53:49 +01:00
userId: string;
mail: string;
username: string;
firstname: string;
lastname: string;
2024-10-07 18:09:27 +02:00
isOwner: boolean;
permissions: PermissionObject;
} & JWTData;
export type JWTRefresh = {
userId: number;
} & JWTData;