Custom Domain Universal Login - Sign Up Works, but Login Fails with "Invalid state" Error

So, the ‘Invalid State’ error caused due to state parameter missing or not matching from initial value.

Here is few community post that could help you: