use a js to hide and bypass login page? Frappe OAuth - How to disable native login form - #4 by revant_one. In case of custom app you can even override login.html or make your own auth.html
Related: Issues with OAuth Bearer Token Validation When Using Keycloak for API Access - #2 by revant_one