I'm looking for a way to easily end a session after a period of inactivity, such as a flask configuration value. I was trying to use PERMANENT_SESSION_LIFETIME like so :
application.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(minutes=30)
However, jwt are being used in the current schema rather than cookies and from my understanding PERMANENT_SESSION_LIFETIME will work with cookies only. I'd also prefer a setup that was based on inactive time rather than session creation.
Let me know if I'm misunderstanding or have any advice.