The Authentication Service is the interface between the angularjs app and the server side api, so http requests are managed here. It also contains a Base64 service for encoding the username and password to be used in the HTTP Authorization header for all requests after logging in.Basically Broad cast is used in angular js
The framework based on javascript .So the youmay store the api generated token in a localy indifferent ways like localstarage,kookies or use broadcast in angular .then check it in the required parts.For details follow the linkhttps://www.c-sharpcorner.com/article/authentication-and-authorization-in-angular/