Breaking changes
- PEP8 naming convention alignment: We made sure our Python SDK is aligned to the PEP8 naming convention; this includes the following breaking changes:
- auth/webauthn.py -
transactionID
argument of thesign_up_finish
function has changed totransaction_id
- management/jwt.py -
updateJWT
function has changed toupdate_jwt
- auth/webauthn.py -
Enhancements
- Passwords for user authentication: Descope now supports usage of passwords. You can design your authentication flow to include password authentication, update a user's password when expired, and more.
- User testing utility for your E2E tests: When using authentication methods such as OTP / Magic Link / Enchanted Link, it can get cumbersome to automatically test those as part of the app's testing process. To close this loop - we released a utility with which you can create test users. Those special users are enabled to generate codes or links without the need of 3rd party messaging services.
You can create, fetch and delete test users - all part of your integration tests code! More information, along with examples, can be found in the SDK's README. - Invite users via management commands: Use the new
invite
User command to programmatically invite users to your project. Just like in the console, you can control which tenants and roles will be associated to the invited users. - Masked email and phone dynamic values: We updated some of the authentication methods' responses to return a masked value of the user's verification identifier. Use the
masked_address
parameter when working with OTP / Magic Link / Enchanted Link to present it in Flow Screens or your own proprietary UI. - Pagination support for Users: We now support the ability to paginate the
search_all
User response. Use thepage
parameter to define how many results should return in each page. - Documentation enhancements: Tiny enhancements to our SDK's README.