UNPKG

@microsoft/teams.apps

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code

13 lines (12 loc) • 535 B
import express from 'express'; import { CloudEnvironment, Credentials, IToken } from '@microsoft/teams.api'; import { ILogger } from '@microsoft/teams.common'; export type JwtValidationParams = { credentials?: Credentials; logger: ILogger; cloud?: CloudEnvironment; }; export type JwtValidatedRequest = express.Request & { validatedToken?: IToken; }; export declare function withJwtValidation(params: JwtValidationParams): (req: JwtValidatedRequest, res: express.Response, next: express.NextFunction) => Promise<void>;