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

Raise error if token auth fails #89

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Raise error if token auth fails #89

merged 1 commit into from
Aug 7, 2023

Conversation

logan-stytch
Copy link
Contributor

Defines two new errors (JWTExpiredError and TokenMissingScopeError) that extend StandardError
Raises in authenticate_token instead of returning nil to protect against cases where someone may use authentication in a guard without actually checking the return value

Copy link
Contributor

@max-stytch max-stytch left a comment

Choose a reason for hiding this comment

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

TY!

@logan-stytch logan-stytch merged commit 94660b9 into main Aug 7, 2023
3 checks passed
@logan-stytch logan-stytch deleted the logan/m2m branch August 7, 2023 21:42
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.

2 participants