How can I run custom auth logic, like beforeLogin

<@1072591948499664996> I cant find it, make sure its strapi v4, how do I extend the login functionality