permission ข้อมูลการประเมิน

This commit is contained in:
Bright 2024-08-08 14:17:10 +07:00
parent 26492de4b8
commit 75ed79f722
9 changed files with 123 additions and 23 deletions

13
src/middlewares/user.ts Normal file
View file

@ -0,0 +1,13 @@
import type { Request } from "express";
export type RequestWithUser = Request & {
user: {
sub: string;
name: string;
given_name: string;
familiy_name: string;
preferred_username: string;
email: string;
role: string[];
};
};