Repository navigation
What's Changed
- Fix sessions that stopped working a few days after login. Token refresh now reads LINE's wrapped
{code, message, data}reply as well as a bare token; previously a wrapped reply was discarded after LINE may have rotated the tokens, and every later refresh failed with HTTP 400, gateway code 10201 (#29, #30). A session already stuck this way needsline loginonce after upgrading - Ask for
line loginwhen LINE rejects a token refresh, instead of "check your connection". JSON errors useauthentication_failedinstead ofremote_failed,doctorreports the rejected refresh, andwatchstops instead of retrying forever. Scripts that retried onremote_failedshould runline logininstead - Reuse the device certificate from an earlier email login, so
login --emailon a known device can sign in without a phone PIN (#31, #33). When LINE skips the PIN, saved Letter Sealing keys are used only if they match the account's current key; otherwise nothing is saved. Certificates from QR login or logged-out sessions are never sent, and a failed login is never repeated - Add
login --email ADDRESS --require-pinto always verify on your phone - Require Go 1.27.4 for source and release builds to address GO-2026-6859 in
net/http(#32) - Stop promising a seven-day refresh interval in the docs; LINE decides when a refresh is due
- Running old and new versions at the same time is unsupported; stop commands and watchers before upgrading
Validation
Checked live with one account on macOS arm64:
- A session from this build kept working for 168 hours, with read-only checks about every 6 hours. That is past the 3–4 day point where v0.6.0 failed.
- A repeat email login signed in without a PIN, and messages decrypted afterwards.
What LINE returns for an expired certificate hasn't been observed. Other platforms were covered by synthetic tests and native CI only. Binaries are unsigned; use the checksums to verify downloads. Details are in the changelog and the session notes.
Full Changelog: v0.6.0...v0.7.0