wc api auth fix