Štosdenfer
Štosdenfer2w ago

add user manually without registration

Hi all! I'm building a document collection app. The two admins who are going to review the documents should log in via email and password, while the clients who upload the documents can remain unauthenticated. Using Convex Auth, how can I add the two admin accounts without the need for a register page? Through the dashboard for example?
11 Replies
Convex Bot
Convex Bot2w ago
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!
erquhart
erquhart2w ago
You can add an optional "roles" field to your users table and manually set "admin" as the value for those two users. Assuming you're at least providing a page to sign up with email/password for the admins
erquhart
erquhart2w ago
Customizing Schema - Convex Auth
Authentication library for your Convex backend
Štosdenfer
ŠtosdenferOP2w ago
I guess that's why it's in beta - it doesn't seem finished. I don't know if what I'm expecting isn't usual, but I should be able to at least delete with a click of a button authenticated users - which I'm also not able to do as far as I can tell: https://github.com/get-convex/convex-auth/issues/59
GitHub
Support deleting users and sessions from outside the library · Iss...
Mainly we need an API for deleting users, or deleting all of a user's accounts.
Štosdenfer
ŠtosdenferOP2w ago
But adding users through the dashboard without the need for a sign in page exposed on the web-app doesn't seem as a unreasonable request
erquhart
erquhart2w ago
Totally reasonable, but Convex Auth just isn't that fully featured currently. If you want a lot of functionality and dashboard functionality, try Clerk. They do support inserting users manually through the dashboard and all sort of other things.
Štosdenfer
ŠtosdenferOP2w ago
I'm trying to move away from Firebase and don't like SQL (I know it, just don't like it) and watch Theo T3 so this seemed like a good thing to try out for a new project. I'm just now watching his Breaking down my tech stack video and he mentions that he too didn't manage to get the Convex Auth working the way he wanted it to and that it's not something you plan to further develop. Instead, that you're betting on the BetterAuth integration with Convex. I already lost my mind yesterday and deleted everything planning to start again with supabase, but I'm gonna give it another shot today with Clerk because I really want to experience the database of Convex
Clever Tagline
Convex works great with Clerk. I'm using that for both personal and work apps, and the setup is pretty straightforward. On a side note, I just want to clarify that this is the community support channel. Your reply used phrases like "it's not something you plan to further develop" and "you're betting on" (emphasis mine). While the Convex team does participate in these conversations, moderators aren't staff. We're just fellow users. Look for the Convex logo next to a user's name to identify staff members.
Štosdenfer
ŠtosdenferOP7d ago
thank you for the clarification! I managed to get everything working
Clever Tagline
Awesome! Care to share any details? It may help someone else down the road.
Štosdenfer
ŠtosdenferOP7d ago
The main thing is I ditched Convex Auth and went for Clerk. I couldn't get Convex Auth working the way I wanted to without it seeming like I'm basically making my own auth Everything else just fell into place I paired it with uploadthing and shadcn

Did you find this page helpful?