Closed peterphanouvong closed 2 months ago
The recent updates focus on enhancing data retrieval and integration processes within the system by leveraging the kindeClient
API. These changes introduce new functionalities to fetch claims and roles, while also expanding existing features to include more detailed organizational and user information. Collectively, these updates aim to improve data accessibility and usability by enriching the system with a more comprehensive dataset.
File(s) | Change Summary |
---|---|
src/session/getClaim.js |
Introduced getClaimFactory to asynchronously fetch claim data. |
src/session/getRoles.js |
New file for asynchronous retrieval of role information using session details. |
src/session/getUser.js |
Enhanced to merge additional user properties into the user object. |
src/session/getOrganization.js |
Expanded to fetch and include additional organizational properties. |
src/session/getUserOrganizations.js |
Modified to return detailed organization data including codes and names. |
src/session/index.js |
Updated to include new functionalities getRoles and getClaim . |
types.d.ts |
Types updated to reflect new and modified data structures for users and organizations, introducing a new type KindeRoles . |
This table groups files with similar updates together, providing a clear and concise overview of the changes made.
Explain your changes
getClaim
- (new) allows users to get a claim from access token or id tokengetOrganizations
- updated to return org name & properties if presentgetUser
- updated to return properties if presentgetUserOrganizations
- updated to return org name if presentgetRoles
- (new) can get the logged in user's rolesupdated setup return the right data so that
useKindeBrowserClient
matches theKindeState
typeKINDE_DEBUG_MODE=true
allows the logsSuppose there is a related issue with enough detail for a reviewer to understand your changes fully. In that case, you can omit an explanation and instead include either “Fixes #XX” or “Updates #XX” where “XX” is the issue number.
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Enhancements
Documentation