iamgmd
iamgmd5mo ago

Convex Auth - User maintenance

Does Convex Auth currently have the ability to perform User maintenance tasks (mutations) from an admin dashboard:- 1. Create user - ability to create a user without a password, Clerk does a good job of this in that you can create the user using Email and when the user logs on without a password (because they don't have one), they receive a magic link. The user will continue to log in this way until they create a password through their 'Manage account' functionality. 2. Update user - ability to change email or any of their profile (user) details. 3. Delete user - ability to completely delete the user from the system, user, authTable records, etc. 4. Disable/Enable user - ability to stop the user from logging into the system. Appreciate that these functions may not be available now as Convex Auth is currently in beta but if possible, would like some input of how I can achieve this functionality. I am using Next.js.
2 Replies
ballingt
ballingt5mo ago
You could build such a dashboard since users are records in a Convex table, but this isn't built in. If you want this functionality automatically consider using Clerk! As you say, they do a great job of providing all of this. To build this yourself I'd have an admin role for users and create a route in Next.js that requires the current user be an admin, and create this dashboard UI. The functionality in Convex looks like normal mutations, with the user authed to check it's themselves or an admin.
iamgmd
iamgmdOP5mo ago
Thanks @ballingt , i'm still not sure on how to create/update the authAccount though, any advice?

Did you find this page helpful?