Is HTTP localhost supported as a Production OAuth redirect for desktop applications using PKCE?

Hi, For my website, I’m trying to configure a private, read-only Square Production OAuth integration. I’m using a local Python application with PKCE (S256). The registered Production redirect URL is: HTTP localhost redirect.

The OAuth documentation normally needs HTTPS for Production, but the PKCE documentation gives HTTP localhost redirect: as an example for desktop applications. Can anyone tell me if an HTTP localhost loopback redirect is supported for PKCE in Square Production? Or, whether HTTPS is mandatory even for a local desktop application?

The integration is for my own Square merchant account and requests only MERCHANT_PROFILE_READ, ITEMS_READ and INVENTORY_READ.

Let me check with our internal teams if this is supported.

Since this application only connects to your own Square account, you could also use your Production Access Token rather than using OAuth.