This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
Releases: descope/react-sdk
Releases · descope/react-sdk
v2.0.15
What's Changed
- Widgets: Widgets are components that allow you to expose management features for tenant-based implementation. Available widgets:
-UserManagement
widget - will let you embed a user table in your site to view and take action.
-RoleManagement
widget will let you embed a role table in your site to view and take action.
-AccessKeyManagement
widget will let you embed an access key table in your site to view and take action.
v2.0.9
Enhancements
- Update dependencies with general improvements in the fingreprinting mechanism
v2.0.8
Enhancements
user-management-widget
now supports edit user details
v2.0.7
Enhancements
onReady
Callback for Flows Components: This callback indicates when the first screen of the Flow has fully rendered. This is useful for facilitating the display of a loading indicator until the page is ready
Bug Fixes
useSession
hook update issue:Resolved an issue where the useSession hook did not update correctly
v2.0.3
v1.0.10
Enhancements
Enhancements
- Translation support: We're excited to introduce our support for translation services! Using the relevant Connectors (such as
Google Cloud Translate
andAWS Translate
) you can configure your flow's screens so that they adapt to your users' languages, enhancing the user experience for global audiences.
v1.0.5
Enhancements
- Flows support in mobile SDK: Flows can now run using our mobile SDK! First up was Kotlin, and we’re actively working on updating our Swift and Flutter SDKs.
useDescope
hook: Added a newuseDescope
hook that exposes all Descope SDK functions.
Bug fixes
- Do not reset session and user when flow does not end with a session: Up until now, the session and the user got reset whenever a flow didn’t end with a session. This was fixed and now both session and user are kept.
- Loop when
useSession
got called multiple times: Fixed a bug where, upon calling theuseSession
hook multiple times, would cause a refresh loop. - Add
tslib
to dependencies:tslib
was missing from our dependency list, and was now added.
v1.0.1
Enhancements
- Helper functions on tokens: New helper functions on tokens were added, including:
refresh(token = getRefreshToken())
- Force a refresh on current session token using an existing valid refresh token.getJwtRoles(token = getSessionToken(), tenant = '')
- Get current roles from an existing session token. You can also provide a tenant ID for specific tenant roles.getJwtPermissions(token = getSessionToken(), tenant = '')
- Get current permissions from an existing session token. You can also provide a tenant ID for specific tenant permissions.
- Readme enhancements: Improved parameter descriptions and sample app definitions.
1.0.0
Initial release of the React SDK