Enhancements
- Get a user's OAuth provider tokens: When using your own OAuth provider account, you can now choose to request additional scopes and have the provider's access tokens managed by Descope. When needed, those can be fetched using the
GetProviderToken
function, which retrieves the token for your application to use. - Configure cookie's same-site: We now allow configuring the cookie's same-site policy, using the
SessionJWTCookieSameSite
config property. This is mainly needed when working in a development environment, and is not recommended to be used in production. - Update a user's login ID: You can now update a user's login IDs using the
UpdateLoginID
function. By providing a new value, it will replace the existing one, and by leaving it empty - it will delete the login ID. More information can be found in the SDK's README. - Set a user's email or phone verification status: When updating a user, there's now an option to define if the phone or email provided are verified or not.
- Search over audit logs: You can now filter over Descope's audit logs using the search audit function. For a full list of filter options see function's documentation.
- List flows function: Use the
ListFlows
function to get a list of all flows in a project. This is especially useful when using custom flows, and building automations around flow management. - Documentation enhancements: Additional explanations were added to our SDK's README and examples.
Bug fixes
- Tenant validation functions: Fixed a bug that resulted in some scenarios in which the
ValidateTenantRoles
andValidateTenantPermissions
functions returned the wrong results.