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

Support errors.Is for token extractors #141

Merged
merged 1 commit into from Dec 15, 2021

Conversation

stefantds
Copy link
Contributor

This PR changes how the extractor expected error ErrNoTokenInRequest is checked.
This allows implementations of the Extractor interface to wrap errors as suggested since Go 1.13. This is mainly interesting for external Extractor implementations.

This is consistent with the direction the errors are refactored in the jwt package. I therefore allowed myself not to open an issue first.

As the two are conceptually related, I could also open a PR towards that branch if that is desired but my understanding is that PR #136 focuses on the validation errors. @oxisto WDYT?

Copy link
Collaborator

@oxisto oxisto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oxisto oxisto merged commit 0fb40d3 into golang-jwt:main Dec 15, 2021
oxisto pushed a commit to moneszarrugh/jwt that referenced this pull request Feb 21, 2023
oxisto pushed a commit to twocs/jwt that referenced this pull request Mar 29, 2023
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.

None yet

2 participants