.includes方法在js中始终为true。

我有这个小代码,用需要包含各种字符串的键进行登录...但是.includes方法始终是正确的,有人可以向我解释一下这是怎么回事?

function validate() {
var keyInput = document.getElementById("keyInputBox").value;
console.log('User trying to log with key: "' + keyInput + '"');
var keyRequireBoolean0 = keyInput.includes('anon')
if (keyRequireBoolean0 = true) {
    var keyRequireBoolean1 = keyInput.includes('sup')
    if (keyRequireBoolean1 = true) {
        alert('login successfull ' + keyRequireBoolean0)
    } else {
        alert('Invaild Key');
    }
} else {
    alert('Invaild Key');
}}

这是html部分:

  <input type="password" id="keyInputBox" placeholder="Key">
  <input type="submit" onclick="validate()" value="Check">