What is the endpoint url and username for Next Auth with credentials? #7666
Replies: 1 comment 1 reply
-
Hi! I'm not sure how you expect hasura to behave in this case. Hasura does not handle the login part of authentication. Both of these are intended to be used once a session has already been aquired, how that session is aquired is left to the user to implement. In your code above, it seems you'd expect hasura to know how to create a session, given a username and password. What you should probably look into is building a custom action, or http endpoint, that will know how to create a session, given the right input. |
Beta Was this translation helpful? Give feedback.
-
I've blocked with Next auth by credentials.
On Hasura console, I'm seeing Graphql endpoint is
https://***.hasura.app/v1/graphql
So I deleted
v1/graphql
and added it. Please check the screenshot.Then I'm getting 404 error. What is the correct endpoint for credential?
Also, I'm not sure what is the username on Hasura console and where can I find it.
Please help me!!!
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions