You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: invenio_oauthclient/config.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -357,3 +357,9 @@ class CustomOAuthRemoteApp(OAuthRemoteApp):
357
357
login is disabled), the login view function will automatically redirect to
358
358
that external authentication service.
359
359
"""
360
+
361
+
OAUTHCLIENT_TOKEN_EXPIRES_LEEWAY=10
362
+
"""The number of seconds before the actual expiration of an access token from which it is considered expired.
363
+
364
+
This ensures that it won't cause issues if some time passes between the check for whether the token is expired and any requests that the token is then used in.
0 commit comments