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

Fix dbl render error on revoked token #33

Closed
wants to merge 1 commit into from
Closed

Fix dbl render error on revoked token #33

wants to merge 1 commit into from

Conversation

samuelboland
Copy link

If the refresh token route was hit, and the token was already revoked, the code would render a JSON error, but it would not return. This meant that the gem would continue executing and eventually hit another render condition, causing a rails double render error.

Adding a return to this case fixes the issue.

If the refresh token route was hit, and the token was already revoked,
the code would render a JSON error, but it would not return. This
meant that the gem would continue executing and eventually
hit another render condition, causing a rails double render error.

Adding a return to this case fixes the issue.
@samuelboland samuelboland deleted the fixDoubleRenderErrorOnRevokedToken branch October 23, 2023 17:50
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

1 participant