I am developing an angular app which currently has authentication with cookies and session. But I want to use jwt authentication.
And I have a doubt that if that token is stolen then the complete authentication is stolen?
And If there is no expiry date is that a risk?
Because if I login in my computer then the token always resides in the browsers local storage and if anyone steals that token from my computer, they have the access to my account. Then how is it a secure authentication
Please help me in understanding the risks and the way this works.
Thank you