localStorage gets cleared when route changes on vue web app

I am storing token after login in localStorage and using it to make api requests. On safari I am facing issue that once I login and redirected to home page, after that If I go to any other route ex /user safari is clearing token stored in localstorage and thus I am getting logged out. It is a Vue web app and I am using Vue router for navigation. Can anyone please suggest something Thanks in advance

localStorage gets cleared when route changes on vue web app
 
 
Q