[#19] Provisional solution for the auth_function is NoneType