mapProfileToUser doesn't work when using ID token authentication
Hi, great work on Better Auth!
When using ID tokens to log in into a sign in provider (e.g. Google with ID token and access token, as aspecified here ),
I've set up additionalAttributes on the user object. If those are required, Prisma complains about those parameters not being specified while creating the user object. If those are not required they are just left as null
Backend
Frontend code:
Using Better Auth v.1.2.1. Any ideas? Thank you!
When using ID tokens to log in into a sign in provider (e.g. Google with ID token and access token, as aspecified here ),
mapProfileToUser parameters are not passed to the user object, thus not being stored in the database neither. I've set up additionalAttributes on the user object. If those are required, Prisma complains about those parameters not being specified while creating the user object. If those are not required they are just left as null
Backend
auth.tsFrontend code:
Using Better Auth v.1.2.1. Any ideas? Thank you!