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 locations kwarg for jwt_required() to be a string #394

Closed
Tloch95 opened this issue Feb 17, 2021 · 1 comment · Fixed by #402
Closed

Allow locations kwarg for jwt_required() to be a string #394

Tloch95 opened this issue Feb 17, 2021 · 1 comment · Fixed by #402

Comments

@Tloch95
Copy link

Tloch95 commented Feb 17, 2021

If only specifying a single location to check for JWT in the jwt_required() decorator, it should be acceptable to pass a string instead of a list for the "locations" kwarg.

Example:
Instead of @jwt_required(locations=['cookies'])...
@jwt_required(locations='cookies') should also be acceptable

@vimalloc-mavenlink
Copy link
Contributor

Awesome, thanks for the report! We will get that fixed up and a new version released here soon! 👍

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 a pull request may close this issue.

2 participants