ClinicWave / clinicwave-frontend

2 stars 1 forks source link

Handle error messages in VerificationForm for invalid token and backend down #14

Closed aamirxshaikh closed 2 months ago

aamirxshaikh commented 2 months ago

Description:

This pull request introduces improved error handling in the VerificationForm component to provide users with clear and meaningful feedback when the authentication token is invalid or when the backend service is down. The changes ensure that users receive specific error messages based on the scenario, enhancing the overall user experience.

Changes:

Purpose:

The purpose of this pull request is to enhance the error handling mechanism in the VerificationForm component, ensuring that users are informed about the status of their actions in a clear and concise manner. By providing specific feedback for invalid tokens and backend issues, we aim to improve the reliability and usability of the application, ultimately leading to a better user experience.

This pull-request addresses issue #13, which highlighted the need for proper error handling in these scenarios.