Angular on Rails - Authentication (Draft)


angular+rails

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.

1. Installing The Necessary gems and bower packages

2. Client-Side Code For The Sign-in

3. Client-Side Code For The Sign-up