server side complete with local auth and google, working on client side