backpack1098B
Convex Communityβ€’2y agoβ€’
33 replies
backpack1098

when is the best time to create a user entry in the db?

hi all!

im curious what's the best practice here. assume that i have a to-do list app and using clerk for auth. if i allow the user to sign in via google, there's no clear way to do "user has signed up" -> "i need to register user in db."

when should i create an entry of the user in the db? im thinking of when the user has created a to-do list and clicked on the save button, i can check if the user has existed in the
users
db and create the entry.

is this reasonable? thank you
Was this page helpful?