updated to try again when 5XX errors occur

This commit is contained in:
Tim Chamberlain
2022-08-23 10:23:15 -05:00
parent 84b1c6f610
commit ce3c9e9deb
2 changed files with 41 additions and 13 deletions

View File

@ -34,11 +34,7 @@ class QClient
private static handleException(exception: QException)
{
console.log(`Caught Exception: ${JSON.stringify(exception)}`);
const {logout} = useAuth0();
if (exception.status === "401")
{
logout();
}
throw (exception);
}
public static getInstance()