How to disabled login API?

I have created my own authentication method for an API and I want to disable default login API. How can I do that?

It will completely block UI access and anything that is based on cookie / session.

Set random passwords that users can’t use and use your own auth instead?

Admins (system manager role) can be created with known passwords and they can then use it to access ui.