Next.js Discord

Discord Forum

Server Action error when trying to auth with Google Provider

Unanswered
Southeastern blueberry bee posted this in #help-forum
Open in Discord
Southeastern blueberry beeOP
I am getting an Error: Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported. error when trying to authenticate with Google Provider. As the error stack is useless I don't know exactly which code to show here to get help, so I pushed the project to a github repo: https://github.com/Zinnavoy/react-med

I am following this video: https://www.youtube.com/watch?v=TLGFTH4s_0Y with some changes to the project structure (no home page, for example) and some dependencies (shadcn for UI components). Other than that it's the same.

The error occurs when I click on the "Login with Google" button in the index (auth) page.
What could be causing it?

0 Replies