UNPKG

@greenpress/auth

Version:

Express Passport authentication service

17 lines (16 loc) 353 B
import { Request } from 'express'; export interface AuthRequest extends Request { headers: { tenant: string; authorization?: string; }; userPayload: { sub: string; tenant: string; email: string; name: string; roles: string[]; isPrivileged: boolean; user: any; }; }