soranoo
soranoo3w ago

[Convex Auth] How to access param in `createOrUpdateUser` callback

Hello, I’m working on a system similar to AWS IAM, where a root user can create sub-users. The sub-users can log in using a combination of the root user’s ID, their own email, and password. Currently, I have two tables: one for root users and another for sub-users. While I can customize user creation and updates by implementing my own createOrUpdateUser callback, I’m facing a challenge. There’s no way to access supplementary data, such as the root user ID, during the login process. This makes it difficult to allow sub-users to authenticate using the required root user ID + sub-user email + password combination. Any workaround?
1 Reply
Convex Bot
Convex Bot3w 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!

Did you find this page helpful?