A Serverless Framework plugin that adds local authorizer support for serverless-offline development. Version 1.2.9 helps developers test Lambda authorizers locally without deploying shared API Gateway authorizers. It allows defining custom authorizer functions in a local file that get called by serverless-offline instead of the real authorizer. The plugin supports explicit authorizer handlers or auto-proxied generation. It's a fork of serverless-offline-auth-plugin with fixes. Active maintenance, no major updates since initial release.
npm install serverless-offline-local-auth-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a local-authorizers.js file with a proxy function that invokes the real Lambda authorizer for local testing.
Place serverless-offline-local-auth-plugin above serverless-offline in the plugins list.
Create local-authorizers.js in the same directory as serverless.yml.
Consider migrating to a more actively maintained solution if issues arise.
Ensure localAuthorizer is indented at the same level as authorizer under the http event.
Create local-authorizers.js in the project root (same directory as serverless.yml).
Ensure module.exports contains a function with the exact name specified in localAuthorizer.name.