Skip to content

Commit ccec3b0

Browse files
Update auth-oidc-proxy/auth/index.mjs
Co-authored-by: Sascha Schwarze <schwarzs@de.ibm.com>
1 parent 1b4d3fc commit ccec3b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth-oidc-proxy/auth/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async function checkAuthn(req, res, next) {
144144
}
145145

146146
// error:1C80006B:Provider routines::wrong final block length
147-
if (err.message.indexOf("error:1C80006B") > -1) {
147+
if (err.message.includes("error:1C80006B")) {
148148
console.log(`${fn} enryption key has been changed. Deleting existing cookie`);
149149
res.clearCookie(SESSION_COOKIE);
150150
return sendJSONResponse(res, 401, { reason: "invalid_session" });

0 commit comments

Comments
 (0)