Adding query or body fields to fetchOptions on social sign in comes null on database hooks

Hello, iam trying to pass custom fields when user sign up it works good with email and password but on social query or even body does not have my custom values, iam using database hook user create after and before both have the same issue.
1 Reply
OSMX
OSMXOP2mo ago
databaseHooks: {
user: {
create: {
before: async (data, ctx) => {
console.log("Before user created:", ctx?.query, ctx?.body);
},
after: async (user, ctx) => {
console.log("After user created:", ctx?.query, ctx?.body);
},
}
},
}
databaseHooks: {
user: {
create: {
before: async (data, ctx) => {
console.log("Before user created:", ctx?.query, ctx?.body);
},
after: async (user, ctx) => {
console.log("After user created:", ctx?.query, ctx?.body);
},
}
},
}

Did you find this page helpful?