Is it possible to access the supertokens instance ...
# support-questions-legacy
d
Is it possible to access the supertokens instance in a middleware? I'm trying to get the user_id of the session, but I'm getting the error AttributeError: 'WSGIRequest' object has no attribute 'supertokens' even though supertokens is initialized and running in all other cases. The middleware order is also correct (first supertokens, then custom middleware)