Created on 8th November 2020
•
Our application helps you to store all your medical records in one place and we will keep them safe and secure with ourselves so that you can find what you are looking for in your medical history in just a matter of seconds. Also, you can track and visualize your daily fitness records with our interactive graphs. All of these features with authentication and authorization so that only you can access your data.
- While creating the controller function for logging-out the user, we ran into a problem on how we can destroy the JWT cookie that was meant to authenticate whether the user was logged-in or not.
**Firstly, we were changing the expired time of the JWT cookie but that was not working on all the webpages as it was giving some error like:- JWT Malformed but after spending an hour or two, we finally took the shortcut and instead of changing the expired time, we cleared the whole cookie instead and by that, we logged-out the user from any page.
Technologies used