Closed peterphanouvong closed 4 hours ago
The recent changes enhance the configuration and user data retrieval capabilities of the project. A new scope
property has been introduced into various configuration classes to dynamically set authentication scopes. The getUserFactory
function now fetches additional user data (phone_number
and username
), enhancing user profile completeness.
File Path | Change Summary |
---|---|
src/config/index.js |
Added scope property to config , defaulting to 'openid profile email offline' , and set framework . |
src/routerClients/AppRouterClient.js |
Updated AppRouterClient constructor to include a new scope property in the options parameter. |
src/routerClients/PagesRouterClient.js |
Added scope property to the options parameter in the constructor, enhancing configuration flexibility. |
src/session/getUser.js |
getUserFactory function now fetches phone_number and username using kindeClient.getClaimValue . |
types.d.ts |
Added optional username and phone_number fields to the KindeUser type. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
KINDE_SCOPE
in.env
getUser
now returns phone and username Suppose 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.