supertokens-python icon indicating copy to clipboard operation
supertokens-python copied to clipboard

Flask does not save user context across API lifecycle

Open rishabhpoddar opened this issue 2 years ago • 0 comments

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.

rishabhpoddar avatar Nov 27 '23 14:11 rishabhpoddar