title: Vuepress oidc-client preventing build
body: <p>It looks like Vuepress is made for public docs, but we decided to add client and server security to protect some of the doc pages. But unfortunately although oidc-client (<a href="https://github.com/IdentityModel/oidc-client-js/wiki" rel="nofollow noreferrer">https://github.com/IdentityModel/oidc-client-js/wiki</a>) works during dev, it throws exception when build.</p>
  
  <p>I get <code>ReferenceError: window is not defined</code> and when I try to trick the compiler with <code>const window = window || { location: {} };</code> I get <code>TypeError: Cannot read property 'getItem' of undefined</code></p>
  
  <p>Any idea how to make this work?</p>