How can I save additional user information like role "vendor" or "customer" in user table when using
Google({
profile(res, tokens) {
console.info({ res, tokens });
return {
id: res.sub,
balance: '0',
fullname: res.name,
email: res.email,
type: res.customer,
};
},
}),
onClick={() =>
signIn('google',
{customer: 'vender'}
})
}
As you can see, customer is not default property of google profile....
I tried like this but can received addtional info
please provide me with guidance?
