uvdesk / api-bundle

API Integration for UVdesk Community Helpdesk System.
MIT License
17 stars 14 forks source link

Should be shown a proper messages when using the session logout api #62

Open komal-sh-27 opened 1 year ago

komal-sh-27 commented 1 year ago

Description
Should be shown a proper messages when using the session logout api. Please follow the below cases point:

  1. If we have expired the token from session/logout api then used this same token for ticket fetch api's. Then shows an message like this: "message": "Invalid credentials."

Here should be shown a message like this: "This api is expired so not working, please check once again"

  1. If we have disable api token from admin dashboard then worked with this token for tickets fetch api's. Then shows an message like this: "message": "An authentication exception occurred."

Here should be shown a message like this: "This api is disabled from admin end, please check once again"

  1. If we have expired the token from session/logout api then used this same token for the session logout. Then shows an message like this: "message": "Invalid credentials."

Here should be shown a message like this: " This Session token has been already expired successfully."

Possible Solution:

Should be shown a proper message while using the below cases.