Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When defining user signup fields, support setting them all in one function at the same time #2109

Open
Martinsos opened this issue Jun 20, 2024 · 0 comments
Labels
auth dx enhancement New feature or request

Comments

@Martinsos
Copy link
Member

Right now you have to define one function per each field, and each function received the same data, that came from Google or Github or whatever. However, that means that you might need to replicate some logic between these functions, like parsing that data with zod.
What would probably make more sense is to instead have them provide a single function that then returns an object containing all the fields. There would be less boilerplate (1 vs N functions) and they could reuse code while doing that.

@Martinsos Martinsos added enhancement New feature or request dx auth labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth dx enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant