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

19 lines
361 B
TypeScript
Raw Normal View History

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