@bitblit/epsilon
Version:
Tiny adapter to simplify building API gateway Lambda APIS
9 lines (8 loc) • 300 B
TypeScript
import { CommonJwtToken } from '@bitblit/ratchet/dist/common/common-jwt-token';
import { APIGatewayEvent } from 'aws-lambda';
/**
* Service for handling jwt tokens
*/
export interface WebTokenManipulator {
extractTokenFromStandardEvent<T>(event: APIGatewayEvent): Promise<CommonJwtToken<T>>;
}