Fix API authentication