LocalStorage authorization session fix