0

I have recently cloned a sample project on GitHub jwt-spring-boot-security-angularjs

I understood most of parts of it but there's something I don't really get that is when I refresh my browser I get logged out

I tried adding using session storage

$http.defaults.headers.common['Authorization'] = $sessionStorage.loginSession;

I put this line of code to the home.js which run at initialization but still ends up logged out when I refreshed the browser

any ideas? will be helpful if its explained thoroughly

2
  • Possible duplicate of Maintaining Session through Angular.js Commented Mar 24, 2018 at 8:48
  • Hello thanks for replying but I don't think it's gonna work? Commented Mar 24, 2018 at 8:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.