Skip to content

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

@Tloch95

Description

@Tloch95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions