chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-21 05:14:43 +00:00
parent b32debb8a3
commit 6602341c0d
2 changed files with 137 additions and 49 deletions

View File

@@ -118,7 +118,10 @@ function authHeaders() {
// to make trust decisions, so unsigned decode is safe. Returns false for
// opaque tokens (no JWT shape), which conservatively skips the proactive
// refresh and lets the 401-on-call path drive the refresh instead.
export function accessTokenIsExpiring(token: string | undefined, skewMs: number = ACCESS_TOKEN_REFRESH_SKEW_MS): boolean {
export function accessTokenIsExpiring(
token: string | undefined,
skewMs: number = ACCESS_TOKEN_REFRESH_SKEW_MS,
): boolean {
if (!token || typeof token !== "string") return false
const parts = token.split(".")
if (parts.length < 2) return false