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