Add Intervals.icu API key support
This would make it much easier for people wanting to run their own instance. I am getting quite a few oauth requests for private Coach Watts instances :)
In .env file: INTERVALS_API_KEY=...
I'll going to implement it in the following days! Thank you letting me known!
Update: Coach Watts already supports connecting Intervals.icu without registering an OAuth application.
From Settings → Apps, choose Connect manually (API Key), then enter the Athlete ID and API key from https://intervals.icu/settings. Coach Watts validates and stores those credentials for the user, so this is the current workaround for private/self-hosted instances.
The exact environment-variable behavior proposed here (INTERVALS_API_KEY=...) has not been implemented. The regular onboarding button also still starts the OAuth flow, and the documentation does not currently make the manual option prominent enough. We should keep this issue open until we decide whether environment-based automatic setup is still needed, or whether improving the self-hosting documentation and routing users to the existing manual connection flow fully addresses the use case.