fix: Normalize GithubOAuth to GitHubOAuth in identity deserialization#1566
fix: Normalize GithubOAuth to GitHubOAuth in identity deserialization#1566gjtorikian merged 3 commits intomainfrom
Conversation
…tion The API returns `GithubOAuth` from getUserIdentities but getAuthorizationUrl expects `GitHubOAuth`. Normalize during deserialization so the provider value can be passed directly. Closes #1227 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 52 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR fixes a casing mismatch between the WorkOS API ( Confidence Score: 5/5Safe to merge — the normalization is type-safe, well-tested, and correctly scoped to the serializer layer. The change is small, targeted, and all types check out: the No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "hide bad casing in a non-reexported raw ..." | Re-trigger Greptile |
Summary
GithubOAuthfromgetUserIdentitiesbutgetAuthorizationUrlexpectsGitHubOAuth— normalizes the casing during deserialization so the value can be passed directly between the twoIdentityResponsetype coverage for the raw API value (GithubOAuth)getAuthorizationUrl)Closes #1227
Test plan
GithubOAuth→GitHubOAuth, other providers unchangedgetAuthorizationUrlURLgetUserIdentitiestest updated to expect normalized value🤖 Generated with Claude Code