UNPKG

734 BTypeScriptView Raw
1import express = require('express');
2import { BackendApplicationContribution } from '../../node';
3import { ElectronTokenValidator } from './electron-token-validator';
4/**
5 * This component contributes an Express middleware that will refuse all
6 * requests that do not include a specific token.
7 */
8export declare class ElectronTokenBackendContribution implements BackendApplicationContribution {
9 protected readonly tokenValidator: ElectronTokenValidator;
10 configure(app: express.Application): void;
11 /**
12 * Only allow token-bearers.
13 */
14 protected expressMiddleware(req: express.Request, res: express.Response, next: express.NextFunction): void;
15}
16//# sourceMappingURL=electron-token-backend-contribution.d.ts.map
\No newline at end of file