better interaction between frontend and proxy for handling stored credentials