Skip to content

moo2u2/next-auth-issue-6559

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

This project has been created to reproduce issue 6559 in next-auth as minimally as possible. It is using a Sitecore JSS 20.x style setup, however all Sitecore functionality (with the exception of a few types) is mocked and included in the project. It is making use of component-level data fetching in JSS Next.JS apps and next-auth is used in the single component included on the page.

You can read more about Sitecore JSS for Next.JS in the Sitecore documentation or at the SDK repo in GitHub.

To reproduce the issue

Simply build the project

npm run build

or start the project

npm run dev

and browse to http://localhost:3000/

To fix the issue

Checkout branch patch-fix for pre-fixed version.

Perform the following steps in your local project:

npm install --save-dev patch-package

Remove the 'if' block from packages/next-auth/src/next/index.ts#L121-L139 leaving just the 'else' lines packages/next-auth/src/next/index.ts#L136-L138.

npx patch-package next-auth

About

Repo replicating next-auth issue 6559

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published