Skip to content

Commit 07de849

Browse files
authored
fix(types): declare correctly user in requests (#968)
1 parent 5b0b59f commit 07de849

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

types/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,21 @@ export interface DatabaseConfiguration {
2929

3030
export function ensureAuthenticated(request: Request, response: Response, next: NextFunction): void;
3131

32+
export interface UserTag {
33+
key: string,
34+
value: string,
35+
}
36+
3237
export interface User {
38+
email: string,
39+
firstName: string,
40+
lastName: string,
41+
team: string,
42+
role: string,
43+
tags: UserTag[],
3344
renderingId: number;
45+
iat: number,
46+
exp: number,
3447
}
3548

3649
export interface ForestRequest extends Request {

0 commit comments

Comments
 (0)