Skip to content

Commit 488292a

Browse files
author
Nicolas Stuhlfauth
committed
Changed docstrings
for set_access_cookies and set_refresh_cookies. Improves documentation. Resolves #161
1 parent 6364f28 commit 488292a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_jwt_extended/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def set_access_cookies(response, encoded_access_token, max_age=None):
205205
:param encoded_access_token: The encoded access token to set in the cookies.
206206
:param max_age: The max age of the cookie. If this is None, it will use the
207207
`JWT_SESSION_COOKIE` option (see :ref:`Configuration Options`).
208-
Otherwise, it will use this as the cookies `max-age`.
208+
Otherwise, it will use this as the cookies `max-age` and the JWT_SESSION_COOKIE option will be ignored.
209209
Values should be the number of seconds (as an integer).
210210
"""
211211
if not config.jwt_in_cookies:
@@ -245,7 +245,7 @@ def set_refresh_cookies(response, encoded_refresh_token, max_age=None):
245245
:param encoded_refresh_token: The encoded refresh token to set in the cookies.
246246
:param max_age: The max age of the cookie. If this is None, it will use the
247247
`JWT_SESSION_COOKIE` option (see :ref:`Configuration Options`).
248-
Otherwise, it will use this as the cookies `max-age`.
248+
Otherwise, it will use this as the cookies `max-age` and the JWT_SESSION_COOKIE option will be ignored.
249249
Values should be the number of seconds (as an integer).
250250
"""
251251
if not config.jwt_in_cookies:

0 commit comments

Comments
 (0)