September 2015
Intermediate to advanced
268 pages
5h 35m
English
In this user story, we will display the username of the logged in user on the screen. To implement this user story, we will take the following steps:
Let's start by adding a method to the authenticator module. We will name this method loggedInUser and make it a pure observable so that it can be used in the view. We will extract the username form the JWT we received from the server. Recall the JWT structure described earlier in this chapter. The JWT is base64 encoded with dot (.) as the separator between head, body, and signature. To retrieve the username, we will ...
Read now
Unlock full access