Commit Graph
1 Commits
Author SHA1 Message Date
yetone 319eee27ea workbuddy 0.1.7: magpie renews the sign-in ahead of time through auth.refresh
auth.refresh with refreshLead 5 minutes (in-fetch: 1) for browser
sign-ins, on both sites; Desktop's (no expiry stored) is renewed as before.
A refresh now runs once per site and refresh token, and its result answers
for the old token a minute, shared by the request path and the hook. Every
failure, an ended refresh token included, throws plainly and doesn't mark
the account, as the built-in never did.

The check before each request stays for OpenCode, which doesn't call the
hook (magpie 0.1.684+ does). refresh.test.mjs fails without the change;
HOME=$(mktemp -d) bun test passes (396 across the repo).
2026-10-03 12:07:23 +08:00