Validates user credentials and returns authentication tokens upon success.
Request
Body Params application/json
{
"username": "sarathexp",
"password": "Aura@123Asd"
}
Request Code Samples
curl --location --request POST 'http://0.0.0.0:8080/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "sarathexp",
"password": "Aura@123Asd"
}'
Responses
application/json {
"status": "success",
"code": 200,
"message": "Logged in",
"data": {
"accessToken": "some_token",
"refreshToken": "some_refresh_token"
}
}
Modified at 2025-02-18 20:53:34