AI - auth-handler