UNPKG

@greenpress/auth

Version:

Express Passport authentication service

18 lines (16 loc) 292 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 } }