Hi @Anupamc,
Thanks for reaching out to the Auth0 Community!
An invalid state error happens when the returned state value does not match the state value that was passed in the initial login request. This is explained in more detail in this related post.
Could you please confirm if the state value passed in the login request matches the state value in the response?