def get_session(self, request, key):
        odm = request.app.odm()
        token = odm.token
        with odm.begin() as session:
            query = session.query(token).options(joinedload(token.user))
            token = query.get(key)
        return self.add_encoded(request, token)
Retrieve a session from its key
dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py/SessionBackend.get_session