title: Alternatives to client db storage in private browsing mode
body: <p>I made a web service. When user logs in, the service creates the indexddb (idb) in openRequest.onupgradeneeded and writes data into the db in openRequest.onsuccess. Codes look like this,</p>
  
  <pre><code>export async function getCurrUser(window) {
      window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
      let  openRequest = indexedDB.open('userData',2);
      openRequest.onsuccess =  e =&gt;{/*write data to db*/}
      openRequest.onupgradeneeded =  e =&gt; {/*build db*/}
      openRequest.onerror=e=&gt; {//case private browsing}
  }
  </code></pre>
  
  <p>in the private browsing mode, only openRequest.onerror is called; in my case, the user can never successfully log in. Since it's impossible to write all data into localstorage, I look for suitable alternatives for storage in private browsing mode. Any suggestions are welcome.</p>