Is there any way to create organization after user create hook?
Im getting UNAUTHORIZED error because im trying to create an organization for user with using user : { create : { after { } }} hook.
Is there any way to avoid it?
Is there any way to avoid it?
Solution
since you have the user id, remove
headers and pass userId in the body instead