theinfogrid.com
Attaching Authorization Token Headers in Angular 6 - The InfoGrid
In this post, we want to get the authorization token, check if it’s expired and refresh it just before attaching it to the HTTP request.