Create Profile Hooks to fetch current user

This commit is contained in:
Charles Bochet
2023-02-02 20:40:44 +01:00
parent 0eef9871f0
commit fcdc9aaec4
17 changed files with 150 additions and 52 deletions

View File

@ -0,0 +1,6 @@
export interface TokenPayload {
'https://hasura.io/jwt/claims': {
'x-hasura-user-email': string;
'x-hasura-user-id': string;
};
}

View File

@ -0,0 +1,4 @@
export interface Tenant {
id: number;
name: string;
}

View 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;
}