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 typos in view_decorators.py #444

Merged
merged 2 commits into from
Aug 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flask_jwt_extended/view_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def verify_jwt_in_request(optional=False, fresh=False, refresh=False, locations=

:param locations:
A location or list of locations to look for the JWT in this request, for
example ``'headers'`` or ``['headers', 'cookies']``. Defaluts to ``None``
example ``'headers'`` or ``['headers', 'cookies']``. Defaults to ``None``
which indicates that JWTs will be looked for in the locations defined by the
``JWT_TOKEN_LOCATION`` configuration option.
"""
Expand Down Expand Up @@ -97,8 +97,8 @@ def jwt_required(optional=False, fresh=False, refresh=False, locations=None):
endpoint can be called.

:param optional:
If ``True``, allow the decorated endpoint to be if no JWT is present in the
request. Defaults to ``False``.
If ``True``, allow the decorated endpoint to be accessed if no JWT is present in
the request. Defaults to ``False``.

:param fresh:
If ``True``, require a JWT marked with ``fresh`` to be able to access this
Expand All @@ -110,7 +110,7 @@ def jwt_required(optional=False, fresh=False, refresh=False, locations=None):

:param locations:
A location or list of locations to look for the JWT in this request, for
example ``'headers'`` or ``['headers', 'cookies']``. Defaluts to ``None``
example ``'headers'`` or ``['headers', 'cookies']``. Defaults to ``None``
which indicates that JWTs will be looked for in the locations defined by the
``JWT_TOKEN_LOCATION`` configuration option.
"""
Expand Down