Custom Token Authentication with Craft 3 Login Form
The submit action is the actionInput input {{ actionInput('users/login') }}.
This will call the login method of the src/controllers/UsersController and perform the action.

You may also take a look at User Element &amp; Events where you can listen on various user events like EVENT_BEFORE_VALIDATE, EVENT_BEFORE_AUTHENTICATE etc.