function isAuthed() {
        if ($window.localStorage.hasOwnProperty('cloud-inquisitor')) {
            let data = JSON.parse($window.localStorage.getItem('cloud-inquisitor'));
            if (data && data.hasOwnProperty('auth') && data.hasOwnProperty('csrf') && data.hasOwnProperty('expiry')) {
                return !dateExpired(data.expiry);
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
/**
     * Validate the users cookies are present and if not, redirect to the auth page
     * @returns {boolean}
     */
Validate the users cookies are present and if not, redirect to the auth page
@returns {boolean}
Validate the users cookies are present and if not redirect to the auth page @returns { boolean }
function isAuthed() {
        if ($window.localStorage.hasOwnProperty('cloud-inquisitor')) {
            let data = JSON.parse($window.localStorage.getItem('cloud-inquisitor'));
            if (data && data.hasOwnProperty('auth') && data.hasOwnProperty('csrf') && data.hasOwnProperty('expiry')) {
                return !dateExpired(data.expiry);
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
function isAuthed ( ) { if ( $window . localStorage . hasOwnProperty ( 'cloud-inquisitor' ) ) { let data = JSON . parse ( $window . localStorage . getItem ( 'cloud-inquisitor' ) ) ; if ( data && data . hasOwnProperty ( 'auth' ) && data . hasOwnProperty ( 'csrf' ) && data . hasOwnProperty ( 'expiry' ) ) { return ! dateExpired ( data . expiry ) ; } else { return false ; } } else { return false ; } }
Validate the users cookies are present and if not, redirect to the auth page
 @returns {boolean}
Validate the users cookies are present and if not redirect to the auth page @returns { boolean }