joschan21 / drizzle-planetscale-starter

NextJS 13 Starter Kit for Planetscale & DrizzleORM
198 stars 18 forks source link

Add drizzle-based auth #3

Open swiecki opened 1 year ago

swiecki commented 1 year ago

Hi Josh! Thank you so much for the awesome example. Would you be able to show an example/video of using drizzle for auth.js login? If we want to use drizzle, would you recommend using prisma for the auth and drizzle for all else? Thanks!

LansPeti commented 1 year ago

+1

KeshScripts commented 1 year ago

Hi Josh, were you able to bypass the "server does not allow insecure connections, client must use SSL /TLS" error

I keep getting this error when I try push my schema with db push

miljan-code commented 1 year ago

@swiecki @LansPeti drizzle with next auth

swiecki commented 1 year ago

@swiecki @LansPeti drizzle with next auth

Thank you! Are you able get the session from an API route running on edge? I get a Can't resole crypto error. I'm not sure if that's due to next-auth or if its how we are writing the drizzle adapter.

Edit: after investigation it looks like it is due to next-auth not running on edge. it looks like next-auth 5 will fix this, a preview of which is available at next-auth@experimental