We are using the following Square OAuth authorization endpoint to authenticate merchants with our POS application:
https://connect.squareup.com/oauth2/authorize?client_id=sq0idp-…
The authentication process starts successfully. However, when Square redirects back to our POS application, we receive the following error:
Internal Error: State value is invalid
Could you please clarify what might be causing this issue?
Specifically, we would like to know whether this error is related to the OAuth state parameter, the redirect URL configuration, or any recent changes to Square’s authentication process.
Please advise on how we can troubleshoot and resolve this issue.