@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
12 lines (11 loc) • 487 B
TypeScript
import express from 'express';
import { Credentials, IToken } from '@microsoft/teams.api';
import { ILogger } from '@microsoft/teams.common';
export type JwtValidationParams = {
credentials?: Credentials;
logger: ILogger;
};
export type JwtValidatedRequest = express.Request & {
validatedToken?: IToken;
};
export declare function withJwtValidation(params: JwtValidationParams): (req: JwtValidatedRequest, res: express.Response, next: express.NextFunction) => Promise<void>;