fix: php sample does not throw exception when auth request fails