
Setup authentication with ng-token-auth and devise_token_auth
If you ever build a SPA app with authentication. The most hard part is keeping users sign-in when they’re coming back/refresh the browser.
So, how could this thing work out?
One possible method is update your header when the user signed in.