I'm building a zapier authentication with my application. My application uses aws cognito user pools for authentication so I connect with oauth v2. I correctly set up a client on my user pool to connect with Zapier. When I try to Test authentication with Zapier, the Zapier test authentication opens up the pop up to set up email and password and then closes it immediately and gives the message: "The account is expired. Please reconnect here". Upon clicking this the same thing happens. I've tried adding a new test account but the same thing happens and I'm not able to add any credentials. Looking at the http tab, I don't see any logs of requests made so I cannot figure out what the response from the authentication calls was.
At one point I got the error "state" not found. I see that state is set by Zapier in the authorization url so I have no control over it.