Skip to content

Commit f221770

Browse files
committed
revokeAccessToken Promise never returns on error DuendeArchive#688
1 parent c05113e commit f221770

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TokenRevocationClient.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export class TokenRevocationClient {
6060
reject(Error(xhr.statusText + " (" + xhr.status + ")"));
6161
}
6262
};
63+
xhr.onerror = () => {
64+
Log.debug("TokenRevocationClient.revoke: Failed to connect to server.")
65+
reject("Failed to connect to server");
66+
};
6367

6468
var body = "client_id=" + encodeURIComponent(client_id);
6569
if (client_secret) {

0 commit comments

Comments
 (0)