authkit-nextjs: Sign-in callback returns SyntaxError: Unexpected token 'e" is not valid JSON

Using:

next: 14.2.13 @workos-inc/authkit-nextjs: ^0.11.1

After email confirmation, the sign-in callback returns:

⨯ SyntaxError: Unexpected token 'e" is not valid JSON
    at JSON.parse (<anonymous>)
    at GET (webpack-internal:///(rsc)/../../node_modules/@workos-inc/authkit-nextjs/dist/esm/authkit-callback-route.js:22:43)

Not sure what I’m doing wrong as I followed the steps from the docs: https://workos.com/docs/user-management/nextjs/2-add-authkit-to-your-app/callback-route

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (8 by maintainers)

Most upvoted comments

The fix has been released as v0.12.2! Please let us know if you’re still running into problems.