angular2-flask icon indicating copy to clipboard operation
angular2-flask copied to clipboard

Reset Token Expire time

Open NexPlex opened this issue 6 years ago • 1 comments

Hi, I like to reset the token expire time on the server and client based on users using the client. No activity timeout at SECURITY_TOKEN_MAX_AGE = 60 * 30. With user activity reset the expire time to current time + SECURITY_TOKEN_MAX_AGE. Any suggestions on how to do this?

Thank you

NexPlex avatar May 14 '18 04:05 NexPlex

Hi, I am using flask-security for managing the token's expiry age. I am not very sure if it provides any mechanism to achieve this as of now.

You can actually try here to see if they expose any such functionality. https://pythonhosted.org/Flask-Security/index.html

ansrivas avatar May 14 '18 13:05 ansrivas