Supertokens-python

Latest version: v0.22.1

Safety actively analyzes 638430 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 18

0.18.0

Added

- Adds support for configuring multiple frontend domains to be used with the same backend
- Added new `origin` property to `InputAppInfo`, this can be configured to allow you to conditionally return the value of the frontend domain. This property will replace `website_domain`
- `website_domain` inside `InputAppInfo` is now optional. Using `origin` recommended over using `website_domain`. Using `website_domain` will continue to work.

Breaking Change
- The order or arguments in the `InputAppInfo` has changed. If NOT using keyword arguments for `app_info` in `supertokens.init`, then you will have to move `website_domain` like so:

Before:
python
init(
app_info=InputAppInfo(
"app_name",
"api_domain",
"website_domain",
None, api_gateway_path
None, api_base_path
None, website_base_path
),
other configs..
)


After:
python
init(
app_info=InputAppInfo(
"app_name",
"api_domain",
None, api_gateway_path
None, api_base_path
None, website_base_path
"website_domain"
),
other configs..
)


- In the session recipe, if there is an `UNAUTHORISED` or `TOKEN_THEFT_DETECTED` error, the session tokens are cleared in the response regardless of if you have provided your own `error_handlers` in `session.init`

0.17.0

- Fixes `create_reset_password_link` in the emailpassword recipe wherein we passed the `rid` instead of the token in the link

Breaking fix
- Fixed spelling of `CreateResetPasswordLinkUnknownUserIdError` in `create_reset_password_link`. It used to be `CreateResetPasswordLinkUknownUserIdError`

0.16.8

Added

- Added `network_interceptor` to the `supertokens_config` in `init`.
- This can be used to capture/modify all the HTTP requests sent to the core.
- Solves the issue - https://github.com/supertokens/supertokens-core/issues/865

Fixes
- The sync functions `create_user_id_mapping` and `delete_user_id_mapping` now take the `force` parameter as an optional argument, just like their async counterparts.
- Functions `get_users_oldest_first`, `get_users_newest_first`, `get_user_count`, `delete_user`, `create_user_id_mapping`, `get_user_id_mapping`, `delete_user_id_mapping` and `update_or_delete_user_id_mapping_info` now accept `user_context` as an optional argument.
- Fixed the dependencies in the example apps
- Example apps will now fetch the latest version of the frameworks

0.16.7

- Added `debug` flag in `init()`. If set to `True`, debug logs will be printed.

0.16.6

- Fixed server error in `sign_in_up` API
- There was a bug in case where the API was called with just oAuth tokens without passing the `redirect_uri_info`.

0.16.5

- Relaxed constraint on `pyJWT` dependency.
- This is done because some users face `InvalidSignatureError` when decoding the id token with the latest `pyJWT` version.

Page 4 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.