Closed trunges21 closed 7 months ago
@trunges21 changes seems correct in that we want the end user to be able to add arbitrary additional parameters for login and register functions, but it would be nice if you could add more detail in the pull request here or perhaps raise a separate issue to clearly point out the motivation for this change.
The recent update introduces two new interfaces, LoginAdditionalParameters
and RegisterAdditionalParameters
, refining the parameter handling in the login
and register
methods of the SDK. Additionally, the checkAdditionalParameters
function in Utils.ts
has been enhanced to more rigorously validate additional parameters against a set of allowed types, ensuring better type safety and clearer separation of concerns between login and registration processes.
File(s) | Change Summary |
---|---|
src/SDK/KindeSDK.ts |
Introduced LoginAdditionalParameters and RegisterAdditionalParameters ; updated method signatures for login and register to use these new interfaces. |
src/SDK/Utils.ts |
Enhanced checkAdditionalParameters function for stricter validation of additional parameters. |
src/types/KindeSDK.ts |
Added LoginAdditionalParameters and RegisterAdditionalParameters types with specific properties and inheritance. |
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?
@trunges21 is there a reason why we are pushing the dist folder? These should be removed. I will do a PR to remove them, will clean up the PR.
@DanielRivers The dist folder contains the bundled code that is ready for usage in a production environment. This way, users can simply install the package and start using it without needing to set up a build process themselves
Explain your changes
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.
Summary by CodeRabbit