Fix custom authentication class not being used on iOS (fixes #115)