Frontend authentication with page credentials

I don’t know if this script will help you make that? https://github.com/jenstornell/kirby-secrets/wiki/Panel-login-automatically

Also available here: Bypass login for localhost environment

You can’t just copy/paste in your case but hopefully it can be a starting point?