Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow verifying access tokens #5

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

seang96
Copy link

@seang96 seang96 commented Apr 17, 2019

Previously the verification was hard coded to support only id as token_use. I opened it up to allow an input parameter from the validator's constructor to allow access token or any other potential types as well.

I also had to disable checking for aud if it is not an id since access tokens do not come with an aud

Potentially breaking change if users use fakeAuth explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant