Open gretzke opened 4 years ago
When using nuxt dont add '@/plugins/msal' to your nuxt.config.js, instead add { src: '@/plugins/msal', ssr: false }. It will not work when server-side rendered, as there is no window.
'@/plugins/msal'
nuxt.config.js
{ src: '@/plugins/msal', ssr: false }
window
Alternatively, you can name the plugin file msal.client.js, in which case it will only be executed on the client side.
msal.client.js
When using nuxt dont add
'@/plugins/msal'
to yournuxt.config.js
, instead add{ src: '@/plugins/msal', ssr: false }
. It will not work when server-side rendered, as there is nowindow
.