Create Profile Hooks to fetch current user
This commit is contained in:
6
front/src/interfaces/TokenPayload.interface.ts
Normal file
6
front/src/interfaces/TokenPayload.interface.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface TokenPayload {
|
||||
'https://hasura.io/jwt/claims': {
|
||||
'x-hasura-user-email': string;
|
||||
'x-hasura-user-id': string;
|
||||
};
|
||||
}
|
||||
4
front/src/interfaces/tenant.interface.ts
Normal file
4
front/src/interfaces/tenant.interface.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface Tenant {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
9
front/src/interfaces/user.interface.ts
Normal file
9
front/src/interfaces/user.interface.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { Tenant } from './tenant.interface';
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
email: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
tenant?: Tenant;
|
||||
}
|
||||
Reference in New Issue
Block a user