The localStorage setting of /auth/error is being set to "Unauthenticated" when the cookie expires.
When logging in, this is unset by the line setError(store ? undefined : AuthError.NoStoreAssigned);
The logic could be improved - if the login was unsuccessful then the error should be AuthError.Unauthenticated rather than AuthError.NoStoreAssigned
The localStorage setting of
/auth/error
is being set to "Unauthenticated" when the cookie expires. When logging in, this is unset by the linesetError(store ? undefined : AuthError.NoStoreAssigned);
The logic could be improved - if the login was unsuccessful then the error should be
AuthError.Unauthenticated
rather thanAuthError.NoStoreAssigned