* fix(temporary-cache): fail on anonymous user * make exceptions generic * fix test * remove redundant bool return * fix unit tests (cherry picked from commit 64c4226817)
64c4226817