Disable user registration (sign up)
I am integrating Convex Auth with a Next.js app. How can I disable user registrations?
I asked the AI bot, but it wasn’t able to tell me how to disable it at the Convex (backend) level, just how to work around it on the client-side.
I tried throwing an error from the createOrUpdateUser() callback, but I’m looking for a more elegant and/or official solution. Doing it this way throws an error that the password does not meet the security requirements.
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!
If you want to keep sign in working while disabling sign up, throwing from createOrUpdateUser is the correct way to do that.