minor change to ios_authenticate method