Hasura Internship Week 3
3.3-Hasura Auth API and Postman Collection

In my previous blog, we experimented on hasura instant data APIs using Postman. This time we will be see how to handle users, roles and sessions using Hasura auth APIs. These auth API help in authentication and management of user sessions.
Hasura gives a number of APIs for user session and profile management. Here, I will be showing you some of the basic auth APIs.
1.Signup
Start your hasura console and open Postman. In URL section, type http://auth.<project_name>.hasura.me/signup .In the body section, select raw format and set the content type to application/json. In the body type {"username":"user1","password":"pass"}.Then send. You should get response showing your user id and an authentication token.

Copy this auth token as you will require it now while accessing your profile.
2. Accessing Profile
Make another post request to the url http://auth.<project-name>.hasura.me/user/account/info. Give your bearer authorization in the headers as shown. Send it.

3. Logout
Make post request to the url http://auth.<project-name>.hasura.me/user/account/logout. Again, give your bearer authorization in the headers. Send it.

Here’s the documentation link
Here’s a video tutorial