adnanrahic / adnanrahic/a-crash-course-on-serverless-auth

Unit test handler which uses the verify-token authorizer

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.