teamhanko / passkeys-example-next-auth

Next.js and Auth.js example using the Hanko passkey provider
5 stars 0 forks source link

not working with next auth v5 #1

Open tobiasmeyhoefer opened 2 months ago

tobiasmeyhoefer commented 2 months ago

sadly this is not working with next auth v5 currently

Ashutosh-Bhadauriya commented 2 months ago

Hey @tobiasmeyhoefer yeah the next-auth passkey provider only works with next-auth v4 as of now.

tobiasmeyhoefer commented 2 months ago

Thanks @Ashutosh-Bhadauriya for responding :) is an update in near future planned?

Ashutosh-Bhadauriya commented 2 months ago

Yup, as soon as v5 is out of beta or maybe even sooner. Also, saw your comment on discord, yes can use the code in the discussion and it will work with drizzleAdaptor too, but you'll need to use session: { strategy: "jwt" }

tobiasmeyhoefer commented 2 months ago

It actually is out of beta for nextjs at least it's written on there new webpage...

Can i also use this approach:

https://docs.hanko.io/passkey-api/js-sdk

And then without session strategy set to jwt @Ashutosh-Bhadauriya ?

Ashutosh-Bhadauriya commented 2 months ago

Ahh cool, we'll adding v5 support soon then and yes you can use js-sdk approach but not sure if without setting session: { strategy: "jwt" } @merlindru your thoughts?