Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13033c5

Browse files
authored
Update app.py
1 parent bd81411 commit 13033c5

File tree

1 file changed

+2
-1
lines changed
  • python-flask-rest-api-login-logout

1 file changed

+2
-1
lines changed

python-flask-rest-api-login-logout/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
app = Flask(__name__)
55
app.secret_key = "secret key"
6-
CORS(app)
6+
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(minutes=10)
7+
CORS(app)

0 commit comments

Comments
 (0)