Skip to content

Commit

Permalink
Token refresh fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed Mar 3, 2022
1 parent acedc0a commit 34eafa6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Server/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from flask import Flask, jsonify
from jwt.exceptions import PyJWTError
from flask_jwt_extended.exceptions import JWTExtendedException
from app.exception import DMSException

from config import config

Expand Down
1 change: 1 addition & 0 deletions Server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Config:

JWT_ACCESS_TOKEN_EXPIRES = timedelta(minutes=10)
JWT_REFRESH_TOKEN_EXPIRES = timedelta(weeks=2)
JWT_HEADER_NAME = "Authorization"
PROPAGATE_EXCEPTIONS = True


Expand Down

0 comments on commit 34eafa6

Please sign in to comment.