def session_expiry(self, request):
        session_expiry = request.config['SESSION_EXPIRY']
        if session_expiry:
            return datetime.now() + timedelta(seconds=session_expiry)
Expiry for a session or a token
dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/backends/mixins.py/TokenBackendMixin.session_expiry