Skip to content
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
4 changes: 2 additions & 2 deletions flask_jwt_extended/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def set_access_cookies(response, encoded_access_token, max_age=None):
:param encoded_access_token: The encoded access token to set in the cookies.
:param max_age: The max age of the cookie. If this is None, it will use the
`JWT_SESSION_COOKIE` option (see :ref:`Configuration Options`).
Otherwise, it will use this as the cookies `max-age`.
Otherwise, it will use this as the cookies `max-age` and the JWT_SESSION_COOKIE option will be ignored.
Values should be the number of seconds (as an integer).
"""
if not config.jwt_in_cookies:
Expand Down Expand Up @@ -245,7 +245,7 @@ def set_refresh_cookies(response, encoded_refresh_token, max_age=None):
:param encoded_refresh_token: The encoded refresh token to set in the cookies.
:param max_age: The max age of the cookie. If this is None, it will use the
`JWT_SESSION_COOKIE` option (see :ref:`Configuration Options`).
Otherwise, it will use this as the cookies `max-age`.
Otherwise, it will use this as the cookies `max-age` and the JWT_SESSION_COOKIE option will be ignored.
Values should be the number of seconds (as an integer).
"""
if not config.jwt_in_cookies:
Expand Down