Hasura Auth API + Postman collection
Hi , as you must have known in traditional systems we generally have to include a code to validate the credentials of the user and store it in the database but sometimes it can provide a backdoor to hackers or may crash.Using Hasura Auth API makes it more fluid by providing additional layer of security and simplifying the process for the developers.It accepts user credentials in JSON format and send the access token to the application program.

As it is shown in above image we just sent a request with username , password and hasura_id,hasura_roles and auth_token are thrown back to the application program.User type is determined by hasura_roles and the auth_token is used to identify the user in further requests.

And when a request of logging out is made via username and authentication token the user is logged out.