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
docs(auth): stop claiming the Apple token lasts ten minutes
It lasts about a day. Reading `exp` off a real token on 2026-07-30 gave ~23.4
hours; the app's own "会话 剩余 N 分" line, which parses that claim, showed 1400+
minutes.
The wrong number has a history worth keeping. This repo first said "about 24
hours", someone then "corrected" it to "about 10 minutes" and annotated the 24
hours as an observation error — and the correction was the error. It spread into
four files and, worse, into a label the user reads on screen: "Apple 的登录凭据
只有约十分钟有效期".
So the fix is not a better number. Nothing states a lifetime any more:
- the on-screen line already shows real time remaining, parsed from `exp`
- the warning text below it no longer names a duration
- comments point at `exp` instead of asserting a value
The 10-minute fallback in GatewayCredential.init stays, now labelled for what it
is: a deliberately pessimistic floor for a token whose `exp` cannot be parsed,
not an estimate of the real lifetime.
This also right-sizes a product decision I had been describing wrongly.
Dropping amdl-portal costs a sign-in roughly once a day, not one every ten
minutes — still a regression against the portal's 60-day refresh, but nowhere
near the one the old wording implied.
No behaviour change: comments and one user-facing string.
Signed-off-by: LYJW131 <lyjw2007@gmail.com>
0 commit comments