You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
307 B
TypeScript
14 lines
307 B
TypeScript
import { Request } from "express";
|
|
import User from './user'
|
|
import { JwtPayload } from "jsonwebtoken";
|
|
|
|
export interface UserTokenData {
|
|
userId: User["id"]
|
|
isAdmin?: boolean
|
|
isTrainer?: boolean
|
|
tokenType: "User"
|
|
}
|
|
|
|
export interface AuthedRequest extends Request {
|
|
user?: UserTokenData
|
|
} |