Handling Google Auth2 sign-in and sign-out, for front-end and backend-flows, with and without cookies enabled