Now you can implement the authenticate_or_request_with_http_token method in your application controller, using the token you get back from your /users/sign_in endpoint.
Part 3: Setting Up with Angular
In this part we will be building out the front-end of the application using Angular.
Your job is to set up the application as an Angular app and get the Chirp list to show up.
Part 4: Authentication with Angular
After you get the main application to show up, the next section will be to implement signup and login pages.
You will create templates for login and signup, and implement the functionality with your Rails API.
One way you can store the auth token from your API is to use sessionStorage:
sessionStorage.setItem("auth_token",token);
You can then retrieve this value by doing the following: