summaryrefslogtreecommitdiff
path: root/animism-align/cli/app/server/web.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-05 23:36:28 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-05 23:36:28 +0100
commited7d80ba92cce20baf662c292be43fa75398b89b (patch)
treed9a39e8d480cd229223b2d8a1cd112a3724186e3 /animism-align/cli/app/server/web.py
parentb451f41ff837c3d47eb05a3da1e8c73f9a88f8b9 (diff)
never expire these stupid tokens
Diffstat (limited to 'animism-align/cli/app/server/web.py')
-rw-r--r--animism-align/cli/app/server/web.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/cli/app/server/web.py b/animism-align/cli/app/server/web.py
index af0c2d9..cf63c3d 100644
--- a/animism-align/cli/app/server/web.py
+++ b/animism-align/cli/app/server/web.py
@@ -40,7 +40,7 @@ def create_app(script_info=None):
app.config['JWT_SECRET_KEY'] = app_cfg.TOKEN_SECRET
app.config['JWT_AUTH_URL_RULE'] = '/api/v1/auth/login'
# app.config['JWT_VERIFY_EXPIRATION'] = False
- app.config['EXPIRATION_DELTA'] = timedelta(days=365 * 10)
+ app.config['JWT_ACCESS_TOKEN_EXPIRES'] = timedelta(days=365 * 10)
app.url_map.strict_slashes = False
db.init_app(app)