function hasExpired(sessionObject) {
                var expirySec = sessionObject.tokenObject.expiry;
                if (!expirySec) {
                    return false;
                }
                expirySec = parseInt(expirySec, 10);
                if (isNaN(expirySec)) {
                    return false;
                }
                var expiryDate = new Date(expirySec * 1000);
                var diff = expiryDate - new Date();
                if (diff <= 0) {
                    return true;
                }
                return false;
            }
/**
             * Determines if the session has expired by inspection of the expiry.
             * 
             * @function hasExpired
             * @private
             * 
             * @param {SessionObject} - a session object
             * @returns {boolean} true if the session has expired, false otherwise.
             */
Determines if the session has expired by inspection of the expiry.

@function hasExpired
@private

@param {SessionObject} - a session object
@returns {boolean} true if the session has expired, false otherwise.
Determines if the session has expired by inspection of the expiry . @function hasExpired @private @param { SessionObject } - a session object @returns { boolean } true if the session has expired false otherwise .
function hasExpired(sessionObject) {
                var expirySec = sessionObject.tokenObject.expiry;
                if (!expirySec) {
                    return false;
                }
                expirySec = parseInt(expirySec, 10);
                if (isNaN(expirySec)) {
                    return false;
                }
                var expiryDate = new Date(expirySec * 1000);
                var diff = expiryDate - new Date();
                if (diff <= 0) {
                    return true;
                }
                return false;
            }
function hasExpired ( sessionObject ) { var expirySec = sessionObject . tokenObject . expiry ; if ( ! expirySec ) { return false ; } expirySec = parseInt ( expirySec , 10 ) ; if ( isNaN ( expirySec ) ) { return false ; } var expiryDate = new Date ( expirySec * 1000 ) ; var diff = expiryDate - new Date ( ) ; if ( diff <= 0 ) { return true ; } return false ; }
Determines if the session has expired by inspection of the expiry.
Determines if the session has expired by inspection of the expiry .