updated token login with PGproxy logic to toggle test platforms