Microsoft login

Following the docs, newest version: 2025-02-22T11:20:43.974Z ERROR [Better Auth]: TypeError [TypeError: The "payload" argument must be of type object. Received null] { code: 'ERR_INVALID_ARG_TYPE' } When logging in with Microsoft? And error 500 How come?
5 Replies
bekacru
bekacru19h ago
Most likely related to your db schema. It’s thrown form prisma directly. I think you can enable debugging in prisma to see a better error message.
kaas
kaasOP19h ago
Thats just weird! I just bumped the version + did generate Enabled debug. Nothing
2025-02-22T12:23:51.194Z ERROR [Better Auth]: TypeError [TypeError: The "payload" argument must be of type object. Received null] {
code: 'ERR_INVALID_ARG_TYPE'
}
GET /api/auth/callback/microsoft?code=1.AS8AZLYeYmMUCE-FrwyfEeeCq6LSfqpKOFBBkdTaVsYzuHXlABMvAA.AgABBAIAAABVrSpeuWamRam2jAF1XRQEAwDs_wUA9P-uS1a6XRFd0Dfr3wwUNJZwmvuKZJmy5wlC7LQkgJMhiO6lkE2zj5nl5MzWcH3pmF2qeHfL1Tx3FdfBum3Ad2Zv4XNg_PRgHb3J8nLYayvi1WoatEpPusBent04dbnhfe
2025-02-22T12:23:51.194Z ERROR [Better Auth]: TypeError [TypeError: The "payload" argument must be of type object. Received null] {
code: 'ERR_INVALID_ARG_TYPE'
}
GET /api/auth/callback/microsoft?code=1.AS8AZLYeYmMUCE-FrwyfEeeCq6LSfqpKOFBBkdTaVsYzuHXlABMvAA.AgABBAIAAABVrSpeuWamRam2jAF1XRQEAwDs_wUA9P-uS1a6XRFd0Dfr3wwUNJZwmvuKZJmy5wlC7LQkgJMhiO6lkE2zj5nl5MzWcH3pmF2qeHfL1Tx3FdfBum3Ad2Zv4XNg_PRgHb3J8nLYayvi1WoatEpPusBent04dbnhfe
bekacru
bekacru19h ago
From which version did you upgrade?
kaas
kaasOP19h ago
Version that was pushed due to CVE If theres any particular tables I need to check in prisma?
lonelyplanet
lonelyplanet16h ago
Try add the Environment varible DEBUG="prisma*" And check your console outputs

Did you find this page helpful?