251208:0010 Backend & Frontend Debug
This commit is contained in:
3
frontend/types/next-auth.d.ts
vendored
3
frontend/types/next-auth.d.ts
vendored
@@ -5,6 +5,7 @@ declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
username: string; // ✅ Added
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
} & DefaultSession["user"]
|
||||
@@ -15,6 +16,7 @@ declare module "next-auth" {
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
username: string; // ✅ Added
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
accessToken?: string;
|
||||
@@ -25,6 +27,7 @@ declare module "next-auth" {
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
id: string;
|
||||
username: string; // ✅ Added
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
accessToken?: string;
|
||||
|
||||
9
frontend/types/organization.ts
Normal file
9
frontend/types/organization.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface Organization {
|
||||
organization_id: number;
|
||||
org_code: string;
|
||||
org_name: string;
|
||||
org_name_th: string;
|
||||
description?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user