UNPKG

@bitblit/ratchet-epsilon-common

Version:

Tiny adapter to simplify building API gateway Lambda APIS

9 lines (8 loc) 432 B
import { Callback, Context, CustomAuthorizerEvent } from 'aws-lambda'; export declare class ApiGatewayAdapterAuthenticationHandler { private webTokenManipulator; constructor(issuer: string, encryptionKeys: string); lambdaHandler(event: CustomAuthorizerEvent, context: Context, callback: Callback): void; private createPolicy; static extractTokenStringFromAuthorizerEvent(event: CustomAuthorizerEvent): string; }