supertokens-python
supertokens-python copied to clipboard
Python SDK for SuperTokens
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...
When `merge_into_access_token_payload()` is called multiple times, each call makes a call to `set_cookie()` in `supertokens_python/framework/flask/flask_response.py`. As a part of flask's default behaviour, flask appends `Set-Cookie` headers if a cookie with...
See the [starlette issue](https://github.com/encode/starlette/issues/919) as well as the [limitations section](https://www.starlette.io/middleware/#limitations) of the documentation. It seems like using `BaseHTTPMiddleware` breaks some things with async/background tasks in FastAPI and people generally recommend...
## Summary of change (A few sentences about this PR) ## Related issues - Link to issue1 here - Link to issue1 here ## Test Plan (Write your test plan...
## Summary of change This is python implementation of https://github.com/supertokens/supertokens-node/issues/342 ## Related issues - Link to issue1 here - Link to issue1 here ## Test Plan (Write your test plan...
If emailpassword receipe's override doesn't return a Response instance in sign_up_post, supertokens-python responds with an unexpected error which is hard to debug. In our case we needed to override sign_up_post...
## Summary of change Generate coverage report on running tests using GH actions ## Related issues - Link to issue1 here - Link to issue1 here ## Test Plan (Write...
Right now, The same user type class is used across recipes when the super recipe is using a sub recipe. This results in inconsistency in the type of the user...
https://github.com/supertokens/supertokens-core/issues/53
## Summary of change (A few sentences about this PR) ## Related issues - #501 ## Test Plan (Write your test plan here. If you changed any code, please provide...