Fix authentication error when clicking 'Checkout'