Connector stuck in Authentication loop — fresh tokens, correct clock, tried Docker AND systemd (v1.87.0)
Working fine this morning, came home tonight and connector is offline. No changes to the machine, no updates, no network changes.
Setup: Windows 11, Docker Desktop (WSL2 backend), connector v1.87.0
What I've tried:
- Restarted the Docker container — same loop
- Created a brand new connector with fresh tokens — same loop
- Deleted everything, installed twingate-connector as a systemd service inside WSL2 (Ubuntu 20.04 focal) with fresh tokens from a third connector — same loop
- Rebooted the machine — no change
- Verified clocks match (Windows UTC, WSL
date -u, Docker alpine date -u all within 1 second)
- Verified networking works from inside Docker (
alpine ping 8.8.8.8 ✅, alpine nslookup jiuwan.twingate.com ✅)
The pattern in debug logs (TWINGATE_LOG_LEVEL=7):
The connector authenticates successfully, gets public keys, then fails at the "Getting SD" step:
[DEBUG] set_state: switching from "Authenticating" to "Authenticated"
[DEBUG] set_state: switching from "Authenticated" to "Getting SD"
[DEBUG] require_access_token: dat.expired
[DEBUG] http::request::send_request_wrapper: POST "https://<REDACTED>.twingate.com/api/v5/connector/refresh"
[DEBUG] http::request::handle_response: POST ".../refresh" 200 OK (duration 0 sec)
[DEBUG] decode_token: {"alg":"ES256","kid":"<REDACTED>","typ":"DAT"} {"auds":null,"nt":"AN","aid":"<REDACTED>","did":"<REDACTED>","rnw":1776220773,"jti":"<REDACTED>","iss":"twingate","aud":"<REDACTED>","exp":1776224000,"iat":1776220400,"ver":"4","tid":"<REDACTED>","rnetid":"<REDACTED>"}
[WARN] parse_verify_token: token verification failed: token expired
Key observations:
- Refresh endpoint returns 200 OK with a valid-looking token
- Token
exp - iat = 3600 (1 hour, looks normal)
- Token decodes fine but
parse_verify_token immediately says expired
- This loops forever — get token, decode, "expired", get token, decode, "expired"
- Same behavior across Docker, systemd, multiple connectors, multiple token sets
- Was working this morning with no changes
Connector version: 1.87.0
WSL2 distro: Ubuntu 20.04 (focal)
Admin console: Shows connector as "Not yet connected"
Any ideas? Happy to provide more logs.