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 bug where config.ContinueOnIgnoredError does not take effect when… #16

Closed
wants to merge 1 commit into from

Conversation

BapiGso
Copy link

@BapiGso BapiGso commented Oct 12, 2023

… set to true

https://github.com/labstack/echo-jwt/blob/2fe4a09e5ba3530b701397c0f42d5003958def3f/jwt.go#L251C1-L253C6
In the current version, when config.ContinueOnIgnoredError is set to true, the code block:

    if config.ContinueOnIgnoredError && tmpErr == nil {
	    return next(c)
    }

is unreachable.

@aldas
Copy link
Contributor

aldas commented Oct 20, 2023

I think you are mistaking here what that field should do. Please read the failing testcase and field description and see if this PR is valid.

@BapiGso
Copy link
Author

BapiGso commented Oct 21, 2023

Sorry, this is my mistake.

@BapiGso BapiGso closed this Oct 21, 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.

2 participants