Hi,
I’m opening Square’s Sandbox OAuth authorize URL inside an Android app’s embedded WebView (no prior session/cookies):
When opened cold in the WebView, this fails with a 400 error:
“To start the OAuth flow for a sandbox account, first launch the seller test account from the Developer Console.”
It only works if I first manually open the Sandbox Dashboard and click “Open” on the Default Test Account before loading the above URL in the WebView. Production’s authorize URL doesn’t have this requirement.
Questions:
- Is this expected behavior for Sandbox?
- Is there a way to start the OAuth flow in a WebView without manually opening the test account first?
Thanks!