Fix for preview authentication.