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
fix(oauth): read SENTRY_CLIENT_ID at call time instead of module load
The test preload deletes process.env.SENTRY_CLIENT_ID before oauth.ts
loads, causing the module-level constant to capture an empty string.
Tests that later set SENTRY_CLIENT_ID in beforeEach had no effect since
the constant was already captured. This caused refreshAccessToken to
throw ConfigError (not AuthError), which the ky afterResponse hook
caught silently, preventing 401 retry from working.
Replace the module-level constant with a getClientId() function that
reads process.env at call time.
0 commit comments