authn-js
authn-js copied to clipboard
React server-side-rendering ReferenceError: document is not defined.
Is there any ways to perform server-side-rendering (ssr)?
Cause now there is err
` /node_modules/keratin-authn/dist/keratin-authn.js:167 document.addEventListener('visibilitychange', function () { ^
ReferenceError: document is not defined
at new SessionManager (node_modules/keratin-authn/dist/keratin-authn.js:167:9)
at Object.
`
@fleyai I'm unsure what AuthN would be able to accomplish during SSR, since it would not have access to the session refresh token or localstorage. Any ideas?