teamhanko / docs

The Hanko documentation
https://docs.hanko.io
8 stars 15 forks source link

not working with next auth v5 @beta 17 #80

Open tobiasmeyhoefer opened 6 months ago

tobiasmeyhoefer commented 6 months ago

Path: /passkey-api/next-auth

this approach is not working in next auth v5 facing this error:

TypeError: next_auth_providers_credentialsWEBPACK_IMPORTED_MODULE_1__.default.default is not a function at PasskeyProvider (webpack-internal:///(rsc)/./node_modules/@teamhanko/passkeys-next-auth-provider/index.js:35:94) at eval (webpack-internal:///(rsc)/./auth.ts:32:96) at (rsc)/./auth.ts (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/app/[locale]/page.js:340:1) at webpack_require (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/webpack-runtime.js:33:42) at eval (webpack-internal:///(rsc)/./components/navigation/NavBar.tsx:7:63) at (rsc)/./components/navigation/NavBar.tsx (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/app/[locale]/page.js:362:1) at webpack_require (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/webpack-runtime.js:33:42) at eval (webpack-internal:///(rsc)/./app/[locale]/layout.tsx:13:87) at (rsc)/./app/[locale]/layout.tsx (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/app/[locale]/page.js:318:1) at Function.webpack_require__ (/Users/tobiasmeyhoefer/Repositories/bitz/.next/server/webpack-runtime.js:33:42) { type: 'TypeError', page: '/en' }