soranooS
Convex Community12mo ago
1 reply
soranoo

[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?
Was this page helpful?