Skip to content

Commit ed96d32

Browse files
juurvimalloc
andauthored
Fix typos in view_decorators.py (#444)
* Fix typos in view_decorators.py * Remove trailing whitespace Co-authored-by: Lily Gilbert-Bland <[email protected]>
1 parent 3158307 commit ed96d32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flask_jwt_extended/view_decorators.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def verify_jwt_in_request(optional=False, fresh=False, refresh=False, locations=
5353
5454
:param locations:
5555
A location or list of locations to look for the JWT in this request, for
56-
example ``'headers'`` or ``['headers', 'cookies']``. Defaluts to ``None``
56+
example ``'headers'`` or ``['headers', 'cookies']``. Defaults to ``None``
5757
which indicates that JWTs will be looked for in the locations defined by the
5858
``JWT_TOKEN_LOCATION`` configuration option.
5959
"""
@@ -97,8 +97,8 @@ def jwt_required(optional=False, fresh=False, refresh=False, locations=None):
9797
endpoint can be called.
9898
9999
:param optional:
100-
If ``True``, allow the decorated endpoint to be if no JWT is present in the
101-
request. Defaults to ``False``.
100+
If ``True``, allow the decorated endpoint to be accessed if no JWT is present in
101+
the request. Defaults to ``False``.
102102
103103
:param fresh:
104104
If ``True``, require a JWT marked with ``fresh`` to be able to access this
@@ -110,7 +110,7 @@ def jwt_required(optional=False, fresh=False, refresh=False, locations=None):
110110
111111
:param locations:
112112
A location or list of locations to look for the JWT in this request, for
113-
example ``'headers'`` or ``['headers', 'cookies']``. Defaluts to ``None``
113+
example ``'headers'`` or ``['headers', 'cookies']``. Defaults to ``None``
114114
which indicates that JWTs will be looked for in the locations defined by the
115115
``JWT_TOKEN_LOCATION`` configuration option.
116116
"""

0 commit comments

Comments
 (0)