Adds a localStorage persistence option, available through the main.localstorage bundle.
LocalStorage is an appropriate persistence option for client-side applications that don't rely on server-side rendering to generate the first page load in a logged-in state. That only works with cookies, which provide ambient authentication.
The upside is that client-side apps relying on localStorage for persistence are not vulnerable to CSRF attacks, which exploit the ambient behavior of cookies.
Adds a localStorage persistence option, available through the
main.localstorage
bundle.LocalStorage is an appropriate persistence option for client-side applications that don't rely on server-side rendering to generate the first page load in a logged-in state. That only works with cookies, which provide ambient authentication.
The upside is that client-side apps relying on localStorage for persistence are not vulnerable to CSRF attacks, which exploit the ambient behavior of cookies.