utils/utils.js
function getStoredToken (storageLocation) {
	var token = readCookie(storageLocation);
	if (!token && (window && window.localStorage || window.sessionStorage)) {
		token = window.sessionStorage.getItem(storageLocation) || window.localStorage.getItem(storageLocation);
	}
	return token;
}
function getStoredToken (storageLocation) {
	var token = readCookie(storageLocation);
	if (!token && (window && window.localStorage || window.sessionStorage)) {
		token = window.sessionStorage.getItem(storageLocation) || window.localStorage.getItem(storageLocation);
	}
	return token;
}
function getStoredToken ( storageLocation ) { var token = readCookie ( storageLocation ) ; if ( ! token && ( window && window . localStorage || window . sessionStorage ) ) { token = window . sessionStorage . getItem ( storageLocation ) || window . localStorage . getItem ( storageLocation ) ; } return token ; }
Reads the token from a cookie, sessionStorage, or localStorage, in that order.
Reads the token from a cookie sessionStorage or localStorage in that order .