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
{{ message }}
Repository navigation
Incorporate OAuth retry logic from conformance helpers into SDK #1370
In PR #1360 (client conformance testing), there's a TODO comment in src/conformance/helpers/withOAuthRetry.ts:30-31:
// TODO: this retry logic should be incorporated into the typescript SDK
The conformance test helper implements OAuth retry logic that:
Handles 401/403 responses by attempting re-authentication
Extracts resourceMetadataUrl and scope from WWW-Authenticate headers
Automatically retries the request after obtaining fresh tokens
Handles the authorization code flow including redirect handling
Suggestion
Consider incorporating this retry pattern into the SDK's withOAuth middleware or as a separate utility, so SDK users don't need to implement this logic themselves.
Activity
feat(client): add getAuthorizationCode() to OAuthClientProvider for h…
feat(client): add getAuthorizationCode() to OAuthClientProvider for h…
pcarleton commentedon Mar 30, 2026
closing this for now, as i'm not sure of the future of the middleware pattern in v2 and don't want to add more work to it