Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS next-auth test app not working #1393

Open
brampurnot opened this issue May 29, 2024 · 1 comment
Open

NextJS next-auth test app not working #1393

brampurnot opened this issue May 29, 2024 · 1 comment

Comments

@brampurnot
Copy link

brampurnot commented May 29, 2024

Description

I'm trying to setup a Wundergraph project with NextJS and next-auth. I have been following the tutorial but without any luck. I then tried to run the testapp locally and I'm getting the same error.

The setup I have is connected with a Keycloak instance; I know I can use OIDC directly but I'm planning on using a token based setup. The app runs fine and I can also login. However all GraphQL calls are returning an HTTP 401.

I installed the latest versions of Wundergraph:
"@wundergraph/nextjs": "^0.15.9",
"@wundergraph/sdk": "^0.184.2",

I also tried it with the Github provider but it has the same issue:
Screenshot 2024-05-29 at 14 36 30

Reproduction

Setup the project connected to a Keycloak instance. Run the app (npm install && npm start), login and query the graphql.

@brampurnot
Copy link
Author

Here is a link to the Github repo btw:
https://github.com/brampurnot/wundergraph-next-auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant