yhY
Convex Communityโ€ข9mo agoโ€ข
1 reply
yh

Hi all. Convex newbie here ๐Ÿ‘‹

Hi all. Convex newbie here ๐Ÿ‘‹

My app has "accounts" and "users" where each user is associated with an account. If a user is created (not via an invitation) then a new account is created and the user is associated with it.

How should i approach this? I thought about using the
afterUserCreatedOrUpdated
callback in
convexAuth
but the user is already tried to be created but fails because it doesnt have an
account
associated with it.
I dont want to make the
account
field optional.
I thought about using the
createOrUpdateUser
callback but i dont want to be in charge of all the user creation process.
Was this page helpful?