removed auth-api hook