Changing get to post request when giving the client the token id