-1👍
✅
Guys this problem was solved, it was my mistake.
When I uploaded the site on the server I need to generate key for JWT key on time of installation of JWT Modules, which I didn’t.
So the user was not logging in properly thats why token was being removed form localStorage as result of un-successful authentication.
Thanks for all the help guys.
1👍
LocalStorage is separated by protocol://host:port, so if you are redirecting to a page that has a different domain/subdomain you will not have access to the local storage that you populated
Source:stackexchange.com