Invalid state from oauth provider

I am adding an add to slack button on bubble. Add to slack button would call https://my-domain/slack/installation and redirect back to https://xxxxxx.bubbleapps.io/api/1.1/oauth_redirect. https://my-domain/slack/installation would generate a unique state on the slack server side. However, I got error of Invalid state from oauth provider. Does anyone know how to fix this? How to validate the state on bubble side?

Personally I would use the api connector and do the calls directly rather than use the built in Oauth, it would make troubleshooting any steps easier and give more flexibility