mirror of
https://github.com/usebruno/bruno.git
synced 2025-05-05 15:32:58 +00:00
clear stored token when refresh call returns an error
This commit is contained in:
parent
3a792a021c
commit
44cef9999c
@ -696,8 +696,7 @@ const refreshOauth2Token = async ({ requestCopy, collectionUid, certsAndProxyCon
|
||||
requests: [], // No sub-requests in this context
|
||||
};
|
||||
debugInfo.data.push(axiosMainRequest);
|
||||
|
||||
if (parsedResponseData?.error) {
|
||||
if (!parsedResponseData || parsedResponseData?.error) {
|
||||
clearOauth2Credentials({ collectionUid, url, credentialsId });
|
||||
return { collectionUid, url, credentials: null, credentialsId, debugInfo };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user