import type { JWTHeaderParameters, JWTPayload } from 'jose'; import type { IdentityDocument, UserDocument, } from '../global/database/schema'; import type { IdentityProviderName } from './jwt.service'; declare module 'express' { interface Request { tokenPayload?: JWTPayload; tokenHeader?: JWTHeaderParameters; identityProvider?: IdentityProviderName; identity?: IdentityDocument; user?: UserDocument; } }