Is your feature request related to a problem? Please describe.
If the user hasn't refreshed the page for a long time, then the session token expires and the onelogin middleware doesn't recognise this and passes the old token making the requests fail
Describe the solution you'd like
A clear and concise description of what you want to happen.
Use the session expiry time to validate whether the token is still valid, if not, then rerun the cookie getter
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Throw an error about the ended session cookie
Is your feature request related to a problem? Please describe. If the user hasn't refreshed the page for a long time, then the session token expires and the onelogin middleware doesn't recognise this and passes the old token making the requests fail Describe the solution you'd like A clear and concise description of what you want to happen. Use the session expiry time to validate whether the token is still valid, if not, then rerun the cookie getter Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Throw an error about the ended session cookie