Skip to content

A Next.js + Express.js + NextAuth setup that results in some request-parsing errors

Notifications You must be signed in to change notification settings

BorisTheTripper/nextauth-token-error

Repository files navigation

nextauth-token-error

A Next.js + Express.js + NextAuth setup that results in a "no access token provided" error

To Reproduce:

  1. git clone https://github.com/BorisTheTripper/nextauth-token-error.git

  2. (Optionally) change the existing oauth credentials in .env with your own. If you do, make sure to configure your app as follows:

    image

  3. pnpm install

  4. pnpm run dev

  5. Go to localhost:3000 while watching the terminal logs. If you see an ECONNREFUSED error, just go to apps/server/src/main.ts, edit the file slightly & save to trigger nodemon one more time. After this, refresh the broser page & you should see NextAuth logs in the server app.

  6. Click "sign in" button & watch what happens in the server logs and browser request tab as you attempt to sign in.

About

A Next.js + Express.js + NextAuth setup that results in some request-parsing errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published