nextauth with next13 - invalid body

I've used basic guide and doc to incorporate nextauth and google as provider in my next13 app. I also have prisma with cockroach. When I use the "signIn" func of nextauth, I'm being sent to: "http://localhost:3000/api/auth/error" and it returns an error that says: "invalid body" I wrapped my main layout with the "SessionProvider" of next-auth. /pages/api/auth/[...nextauth].js: import NextAuth from "next-auth"; import GoogleProvider from "next-auth/providers/google"; import { PrismaAdapter } from "@next-auth/prisma-adapter"; import prisma from "../../../lib/prisma"; export default NextAuth({ adapter: PrismaAdapter(prisma), providers: [ GoogleProvider({ clientId: process.env.auth.GOOGLE_CLIENT_ID, clientSecret: process.env.auth.GOOGLE_CLIENT_SECRET, }), ], secret: process.env.auth.JWT_SECRET, }); What kind of further info do you need? let me know
1 Reply
Aviv
Aviv2y ago
When I run my server I also get all these errors
Want results from more Discord servers?
Add your server