finshing architecture for project now we have all layers to build profitionl project app,components ,hooks ,lib,services,styel ,types
This commit is contained in:
16
types/auth.ts
Normal file
16
types/auth.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface AuthUser {
|
||||
id?: string;
|
||||
name?: string;
|
||||
userName?: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
role?: string;
|
||||
permissions?: string[];
|
||||
roleId?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface LoginResponse {
|
||||
token: string;
|
||||
user: AuthUser;
|
||||
}
|
||||
Reference in New Issue
Block a user