Insert additional fields on email/password signup
I am using Convex Auth with the Password provider. I want to insert additional fields like name when signing up with email and password. Is there a way to achieve this by inserting as part of the sign up? I would prefer name or other custom fields to not be optional.
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
I figured this out. You can customize a Password provider as shown in this demo app: https://github.com/get-convex/convex-auth-example/blob/d3904861a64162628ea5f6d5ae2adb9b5fd0a763/convex/auth.ts#L37
GitHub
convex-auth-example/convex/auth.ts at d3904861a64162628ea5f6d5ae2ad...
Convex Auth example repo. Contribute to get-convex/convex-auth-example development by creating an account on GitHub.