We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57da03c commit c6165ecCopy full SHA for c6165ec
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