DevTheFool

Results 7 comments of DevTheFool
trafficstars

But with `adapter: PrismaAdapter(prisma)` when I move the `callbacks: {...}` from `auth.ts` to `auth.config.ts` I got the error `[auth][cause]: Error: PrismaClient is unable to run in Vercel Edge Functions or...

@ThangHuuVu > @AmphibianDev, I think you can define the `adapter` in the `auth.ts` file instead of the `auth.config.ts` file. See an example here in our dev app: I already did;...

> only if you're running on an edge runtime then Prisma has issues, although they can be worked around like implied by Thang and ConnorC18 detailed. @ndom91, I did like...

@ConnorC18 Believe me, I have tried every combination of moves possible. :sweat: The only working one, but with no user custom filed in the middleware is: `{pages, callbacks, adapter, session,...

> // The `req.auth` will have all the fields that you returned via the `session` callback @jainmohit2001 I don't get it, I tried following what you said, but they still...

@jainmohit2001 You gave me hope again, I was literally just writing about giving up, and your message popped up, I even started to have PTSD when I opened the auth's...

Big thanks to ConnorC18 for the amazing help! :star::star::star::star::star: > es-line type issue in @AmphibianDev s case, but I believe that is because he needs to update his next-auth version...