Automating log in and transaction confirmation for test net

Hello I am currently doing my thesis which utilizes MetaMask and Sepolia Test Net. One of the requested features is that I should automate logging in to MetaMask when I have logged in to the localhost web app I am working on (ex. I logged in to community MetaMask io then it should log me in to MetaMask as well (with a password that can be hard-coded). The idea is to have a single wallet for multiple devices that can use the transaction similar to a private blockchain but currently, I am implementing it in a MetaMask wallet. Is this feasible?

Thanks for your suggestion, I’m moving your topic to Feather Requests