...

/

Securing the Whole App

Securing the Whole App

In this lesson, we will use the token received after authentication to secure our AJAX calls.

We'll cover the following...

In the last lesson, we received the token after having authenticated the user, and now we will be sending the token to all the components needing to make an authenticated AJAX request.

We will use RxJS Subject-observables here. We will create a BehaviorSubject holding an initial value and send the received value using the next method of the Subject. This value will then be received by all the components subscribing to this observable at any point in ...