Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

increased token expiry to 12 hours (#788)

Raghuvar arora2d109d9b4ddf
diff --git a/api/catalog/settings.py b/api/catalog/settings.py
index cb48187f2..858c9faf4 100644
--- a/api/catalog/settings.py
+++ b/api/catalog/settings.py
@@ -123,7 +123,10 @@ OAUTH2_PROVIDER = {
"SCOPES": {
"read": "Read scope",
"write": "Write scope",
- }
+ },
+ "ACCESS_TOKEN_EXPIRE_SECONDS": config(
+ "ACCESS_TOKEN_EXPIRE_SECONDS", default=3600 * 12, cast=int
+ ),
}
OAUTH2_PROVIDER_APPLICATION_MODEL = "api.ThrottledApplication"