As long as your applications use one subdomain, you can use window.localStorage on the client side for these purposes.
// to set token in storage window.localStorage.setItem('access_token', access_token); // to get token from storage access_token = window.localStorage.getItem('access_token');
This way, you will have access to this repository from every page with some javascript code. For example, with the combination of angular + web.api, you can configure the token for all your requests in the $ http service:
$http.defaults.headers.common['Authorization'] = "Bearer " + token;
You can also use an interceptor to set the token if you want more control over your code.
source share