src/store/session/webstorage.js
/**
 * Construct a web storage session store, capable of storing account keys,
 * session keys and access tokens.
 * @constructor
 * @param {WebStorage} webStore A web storage implementation, e.g.
 * 'window.localStorage' or 'window.sessionStorage' or a custom implementation.
 * @throws if the supplied 'store' does not meet the Storage interface of the
 * WebStorage API.
 */
Construct a web storage session store, capable of storing account keys,
session keys and access tokens.
@constructor
@param {WebStorage} webStore A web storage implementation, e.g.
Construct a web storage session store capable of storing account keys session keys and access tokens . @constructor @param { WebStorage } webStore A web storage implementation e . g .
function WebStorageSessionStore(webStore) {
    this.store = webStore;
    if (!utils.isFunction(webStore.getItem) ||
        !utils.isFunction(webStore.setItem) ||
        !utils.isFunction(webStore.removeItem) ||
        !utils.isFunction(webStore.key) ||
        typeof(webStore.length) !== 'number'
       ) {
        throw new Error(
            "Supplied webStore does not meet the WebStorage API interface",
        );
    }
}
function WebStorageSessionStore ( webStore ) { this . store = webStore ; if ( ! utils . isFunction ( webStore . getItem ) || ! utils . isFunction ( webStore . setItem ) || ! utils . isFunction ( webStore . removeItem ) || ! utils . isFunction ( webStore . key ) || typeof ( webStore . length ) !== 'number' ) { throw new Error ( "Supplied webStore does not meet the WebStorage API interface" , ) ; } }
Construct a web storage session store, capable of storing account keys,
 session keys and access tokens.
Construct a web storage session store capable of storing account keys session keys and access tokens .