NeonN
Neon3mo ago
1 reply
sad-indigo

Creating a user doesn't insert the user immediatly (Neon AUTH)

Hey,

I'm using neon auth with stackserverApp SDK and I need to use the created userId in another table.
My problem is that when I try to insert the created userId in my table that has a FK to usersSync table, it throws an error telling me that the user doesn't exists 🫤

Does someone know if the stackServerApp.createUser() function could accept a transaction to create user and insert it in my other table and rollback if there was an error ?

Thanks for your help 😄
Was this page helpful?