Hasura GraphQL POST request in JWT callback not working #5044
Unanswered
IsoPhoenix
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm new to next-auth and this community, so please bear with me/let me know if I'm breaking any rules.
I'm developing a next.js webapp that uses next-auth for authentication and is linked to a Postgres database through Hasura. I'm following this tutorial for the integration and trying to update the users table in my database via the JWT callback function. The full authentication process is still running and I can authenticate into my app, but it doesn't look the database is updating.
The actual graphql query works as intended when I prototype it in Hasura, so I don't think that's the source of the problem. Maybe something to do with how I'm writing the request (either in data-fetch.ts or data-fetch-methods.tsx)? I'm not really sure how to resolve this or how to debug this further, so I'd really appreciate any guidance you can provide!
I've attached the relevant code below:
Thank you so much in advance!
Beta Was this translation helpful? Give feedback.
All reactions