Error with Prisma + Auth JS (Next JS)
Unanswered
Weevil parasitoid posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Weevil parasitoidOP
I decided to enable authorization via GitHub using Auth JS and so that all users and the session are saved, I use the Prisma Client. But it seems to save everything, authorizes, but issues errors, they can be seen on the screenshot. What to do? Help please
![Image](https://cdn.discordapp.com/attachments/1206272886726459422/1206272887150092390/image.png?ex=65db682b&is=65c8f32b&hm=702e483b7527600c2403e94186fa266216c6b225e7332dff41ad0960658a0a35&)
![Image](https://cdn.discordapp.com/attachments/1206272886726459422/1206272887485632642/image.png?ex=65db682b&is=65c8f32b&hm=e01b89a09cb327c12a82688a6bc36cf4dfb042b5dc0aa9508359fdfc84248f32&)
6 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Southern rough shrimp
I had this issue yesterday - it might be worth opening a git issue for on the prisma repository
![Avatar](https://cdn.discordapp.com/avatars/397055198545051650/1845f5dc6f66f45bf8fa6942f3b5133b.webp?size=256)
<Milind ツ />
Prisma is not supported on middleware. You have to use api route or use prisma accelerate
![Avatar](https://cdn.discordapp.com/avatars/886269624608522240/318caaf5790b34fb479fb6373523b273.webp?size=256)
Hong
@Weevil parasitoid You can't use Prisma on Edge Function. Remove the following if you have:
export const runtime = 'edge'
![Avatar](https://cdn.discordapp.com/avatars/397055198545051650/1845f5dc6f66f45bf8fa6942f3b5133b.webp?size=256)
<Milind ツ />
Previous next auth config management was easy to manage imo. Upcoming V5 seems out of place
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Southern rough shrimp
Tbh it is in beta
V5 API is MUCH nicer than v4