Skip to content
Snippets Groups Projects
Commit 64b59330 authored by radek's avatar radek
Browse files

extended token expiration time

parent cdd6faca
No related branches found
No related tags found
No related merge requests found
Pipeline #14996 passed
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7020/badge)](https://bestpractices.coreinfrastructure.org/projects/7020)
# TJTS5901 Course app
This project will be ficusing on creating application that is supose to serve for auctionaing items. What we plan to inculde as it's features:
......@@ -40,6 +41,4 @@ Please see the `docs/tjts5901` folder for more complete documentation.
## Security issue/bug reporting
To report bugs and security issues, please use [the project "issues" form](https://gitlab.jyu.fi/13th/13-sins-of-gitlab/-/issues/new?issuable_template=Bug%20Hunt)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7020/badge)](https://bestpractices.coreinfrastructure.org/projects/7020)
\ No newline at end of file
To report bugs and security issues, please use [the project "issues" form](https://gitlab.jyu.fi/13th/13-sins-of-gitlab/-/issues/new?issuable_template=Bug%20Hunt)
\ No newline at end of file
......@@ -116,6 +116,8 @@ sentry_sdk.init(
# Create the Flask application.
flask_app = create_app()
# Addad time till token expires from 10 min to 2 hours
flask_app.config['JWT_ACCESS_TOKEN_EXPIRES'] = 7200
# create flast restapi
api = Api(flask_app)
#create JSON web token bearer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment