Fix auth-token retrieval for curl [finishes #57169686]