def on_html_document(self, app, request, doc):
        if request.method == 'GET':
            session = request.cache.session
            if session and session.user:
                doc.head.add_meta(name="user-token", content=session.encoded)

    # MIDDLEWARE
Add the user-token meta tag
dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/backends/mixins.py/SessionBackendMixin.on_html_document