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
refactor(tokens): derive expiry ceilings and defaults from the global strategy
The global expiry config traveled through server.Config three times: as
the parsed RefreshTokenPolicy, again re-parsed into ExpiryCeilings, and
a third time as raw strings in RefreshTokenDefaults. NewExpiryPolicy now
derives the ceilings and the inheritance roots from the strategy itself,
so both exported types, both Config fields, buildExpiryCeilings and the
discard-logger string round-trip all disappear.
The two validations it hosted move where they belong: a non-positive
idTokens value is rejected where it is parsed, and negative refresh
durations are rejected in NewRefreshTokenPolicy — which also covers the
pre-existing case of a negative global instantly expiring every token.
NewRefreshTokenPolicy returns to its original signature; the injected
clock reaches override strategies through NewExpiryPolicy alone.
Claude-Session: https://claude.ai/code/session_0144Jv4MhGfwhx67R3G6qqrC
Signed-off-by: Helio Machado <0x2b3bfa0+git@googlemail.com>
0 commit comments