UNPKG

@blenz/middy-authorizer-middleware

Version:

JWT token validation

13 lines (12 loc) 319 B
import { AuthMiddlewareConfig } from './auth.config'; /** * Middy middleware for token authentication * * ``` * handler.use(AuthorizeMiddleware({...})) * ``` */ export declare const AuthMiddleware: (config: AuthMiddlewareConfig) => { before: (handler: any) => Promise<void>; }; export default AuthMiddleware;