You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
add_serving() read self._user_id while building its payload, but on a
cold client _ensure_auth() hadn't run yet, so it froze userId=null and
Cronometer rejected the write. The retry re-sent the same dict and
failed identically, burning a second login (#31).
Add a user_id property that logs in before returning the id, and read
identity through it in add_serving and the v3 URL. Payloads are now
built from authenticated state, so the retry only ever recovers a
genuine token expiry.