We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57da03c + c6165ec commit 78fbe4bCopy full SHA for 78fbe4b
client/src/services/apiProxy.js
@@ -19,7 +19,7 @@ export async function request(path, params, autoLogoutOnAuthError = true) {
19
20
if (!response.ok) {
21
const {status, statusText} = response;
22
- if (autoLogoutOnAuthError && status === 401) {
+ if (autoLogoutOnAuthError && status === 401 && token) {
23
log.error('Logging out due to auth error', {status, statusText, path});
24
logout();
25
}
0 commit comments