From 6494330c6b1c95435c80e9b67fdbcfebd1797edd Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Sat, 10 Jan 2026 11:15:20 +0800 Subject: [PATCH] feat(codex): add subscription date fields to ID token claims --- internal/api/handlers/management/auth_files.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/api/handlers/management/auth_files.go b/internal/api/handlers/management/auth_files.go index e0904ab6..27c9a902 100644 --- a/internal/api/handlers/management/auth_files.go +++ b/internal/api/handlers/management/auth_files.go @@ -460,6 +460,12 @@ func extractCodexIDTokenClaims(auth *coreauth.Auth) gin.H { if v := strings.TrimSpace(claims.CodexAuthInfo.ChatgptPlanType); v != "" { result["plan_type"] = v } + if v := claims.CodexAuthInfo.ChatgptSubscriptionActiveStart; v != nil { + result["chatgpt_subscription_active_start"] = v + } + if v := claims.CodexAuthInfo.ChatgptSubscriptionActiveUntil; v != nil { + result["chatgpt_subscription_active_until"] = v + } if len(result) == 0 { return nil