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(auth-next-server): deduplicate concurrent token refresh calls to prevent invalid_grant
OAuth refresh tokens are single-use. Without concurrency protection, parallel
requests hitting the same expired token each fire a separate refresh, causing
the second caller to receive a 400 invalid_grant and set RefreshTokenError on
the session. Promise deduplication ensures all concurrent callers share one
in-flight refresh per token.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments