feat(proxies)!: rewrite ExpressVPN provider to Android device login

Swap cookie/PKCE auth for the OAuth 2.0 device authorization grant with a cached rotating refresh token. Fix the connection-token key (`cat`) and move the cache to {cache}/vpn/ to match ProtonVPN.

BREAKING CHANGE: cookie-file auth removed; run once with `enable: true` to approve a device code.
This commit is contained in:
imSp4rky
2026-07-09 11:20:38 -06:00
parent 4ebe41fafd
commit 847696b301
6 changed files with 306 additions and 629 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -31,7 +31,7 @@ def initialize_proxy_providers() -> List[Any]:
proxy_providers.append(Basic(**proxy_config["basic"]))
# ExpressVPN/ProtonVPN auto-load when their default cookie file exists (no yaml needed)
expressvpn = ExpressVPN(**(proxy_config.get("expressvpn") or {}))
if proxy_config.get("expressvpn") or expressvpn.cookie_path.is_file():
if proxy_config.get("expressvpn") or expressvpn.cache_path.is_file():
proxy_providers.append(expressvpn)
if proxy_config.get("nordvpn"):
proxy_providers.append(NordVPN(**proxy_config["nordvpn"]))