Extend this interface to type req.user for your application.
declare module "bunway" { interface AuthUser { id: string; email: string; role: "admin" | "user"; scope?: string[]; }} Copy
declare module "bunway" { interface AuthUser { id: string; email: string; role: "admin" | "user"; scope?: string[]; }}
Extend this interface to type req.user for your application.
Example