POST /continue endpoint after redirect returns 401 Unauthorized

I solved.
Wrong auth domain was set.