Rest API for Authentication with nHost

Issue

This Content is from Stack Overflow. Question asked by wizard_draziw

So I know there’s several SDK packages for many languages available for nHost, however I need to create my own interface to the system since the language I’ll be using isn’t typical.

I basically just need to know how to interact with authentication endpoints, send a users un/pw and recieve a JWT token. I’ve been successfully able to do this with aws Cognito, but I’d like to explore this instead.

I’m also not sure if I’m using the right base url, here’s my thought so far:

https://kbvlufgpikkxbfkzkbeg.nhost.run/auth/login

So I would POST to there with some json in the body with the un/pw stuff, and the response should be the jwt token right?

I get a “resource does not exist” response from the above, however, so obviously I’m not forming the url correctly in the first place.

Thanks for the help!



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?