adnanrahic / adnanrahic/a-crash-course-on-serverless-auth
Unit test handler which uses the verify-token authorizer
Open
- Dominant language
- JavaScript
- Stars
- 160
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
I am writing unit test using jest on the auth/AuthHandler.me which uses the verify-token authorizer.
How do I pass the Authorization token in the tests so it invokes the verify token authorizer as well before executing the handler so that the principalId is already set(from the authorizer) when the data reaches the handler.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.