Sonos Companion OAuth Helper
This generic helper signs a Sonos user in, exchanges the authorization code, and displays credentials to paste into a Bitfocus Companion Sonos module.
Required environment
SONOS_CLIENT_KEY: configuredSONOS_CLIENT_SECRET: configuredSONOS_REDIRECT_URI: https://integrations.mosaicwadsworth.com/sonos/oauth/callback
The helper does not store refresh tokens. Copy the result into Companion, then keep this deployment only for future setup or token replacement.