nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

fix: prevent error when local storage is not available #1697

Closed bissolli closed 1 year ago

bissolli commented 2 years ago

There is a known issue with using the module in a browser with no localStorage available that has been fixed in the auth-v5, but it's still broken in the v4 - this PR only replicates the fix with a small improvement to avoid warnings in the server where localStorage will never be available.

V5 reference fix Original issue