DEV Community

Discussion on: Set up a free PostgreSQL database on Supabase to use with Prisma

Collapse
 
rosswaycaster profile image
Ross Waycaster

Thanks for the guide! I've been interested in using Prisma with Supabase, mainly to integrate it with Blitz.js. How can we utilize Supabase Auth with Prisma? Is there a way to send the user's JWT through Prisma so we can take advantage of Supbase Auth Policies? Thanks!

Re: @thisismahmoud @kiwicopple

Collapse
 
annjkai profile image
Annika Kaiser

@kiwicopple I'd be super interested in this too - I tried using Prisma together with Supabase but there are problems importing the Auth DB and my app's DB simultaneously. Even if I did, I'd have to handle the JWT Tokens on my own, why I don't have experience doing. Would love to know if you can expand on this guide with this use case in mind. Thank you!

Collapse
 
thisismahmoud profile image
Mahmoud Abdelwahab

hey @annjkai and @rosswaycaster 👋🏼 I haven't tried using Supabase Auth with Prisma yet. If I'm able to make it work I'll write a blog post 😄