fix auth adapter