How can I run custom auth logic, like beforeLogin

<@1072591948499664996> how can I modify the login functionality so that I can first make a check to see if the user that is about to login has a certain boolean value on or off before actually sending back the login result