Breaking changes
- 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
maskedAddress
parameter when working with OTP / Magic Link / Enchanted Link to present it in Flow Screens or your own proprietary UI.
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.
- Import and export of Flows and Themes: If you want to export or import flows and themes from one project to another - you can do so now with supporting commands, such as
ExportFlow
. Examples can be found in the SDK's README. - 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. - Pagination support for Users: We now support the ability to paginate the
SearchAll
User response. Use thepage
parameter in theUserSearchOptions
object to define how many results should return in each page.
Bug fixes
- Error code fixes: Missing arguments error (
ErrMissingArguments
) and Invalid arguments error (ErrInvalidArguments
) were switched; those have now been fixed.