Authenticate the server and clients with firebase