UNPKG

@unito/integration-sdk

Version:

Integration SDK

19 lines (18 loc) 519 B
import { Request, Response, NextFunction } from 'express'; declare global { namespace Express { interface Locals { secrets: Secrets; } } } /** * Represents the secrets parsed from the X-Unito-Secrets header. * * This is the decrypted payload of the secrets defined in the integration's configuration. */ export type Secrets = { [keys: string]: unknown; }; declare function extractSecrets(req: Request, res: Response, next: NextFunction): void; export default extractSecrets;