Skip to content

Commit c9ae3f3

Browse files
authored
Merge pull request #16 from YikSanChan/patch-1
Fix 400 status check in refresh validation
2 parents 1474460 + 7213781 commit c9ae3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openid_connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function oidcRefreshRequest(r) {
9494
var error_log = "OIDC refresh failure";
9595
if (reply.status == 504) {
9696
error_log += ", timeout waiting for IdP";
97-
} else if (reply.status = 400) {
97+
} else if (reply.status == 400) {
9898
try {
9999
var errorset = JSON.parse(reply.responseBody);
100100
error_log += ": " + errorset.error + " " + errorset.error_description;

0 commit comments

Comments
 (0)