supertokens-python
supertokens-python copied to clipboard
Flask does not save user context across API lifecycle
In the middleware implementation for flask, we use @app.before_request, @app.after_request and @app.errorhandler(SuperTokensError) to manage supertokens hooks for each API call. However, a fresh new context is created across these preventing users from accessing the same user context across their overrides.