Innovateninjas / Paws-frontend

A fast responsive webapp that allows you to report injured stray animals to the nearest NGOs.
https://pawss.vercel.app
GNU General Public License v3.0
63 stars 101 forks source link

💡[FEATURE]: Create 401 - Unauthorized page #437

Closed DharshiBalasubramaniyam closed 4 months ago

DharshiBalasubramaniyam commented 5 months ago

Is your feature request related to a problem? Please describe. Without login When i am try to access user/ngo related page either it redirecting to the corresponding page or it displays an empty message text without any proper links or styles. Same problem happen when i logged as user and try to access ngo stuff.

Screenshot 2024-05-30 191923 Screenshot 2024-05-30 185212 Screenshot 2024-05-30 190428 Screenshot 2024-05-30 190519

Describe the solution you'd like We can redirect such requests to a separate page /unauthorize, by protect routes by checking both token and role.

unauth

Kindly please assign this issue to me under gssoc to add this feature.

github-actions[bot] commented 5 months ago

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.