Changed ROBLOX redirect URI to a more automatic manner#171
Conversation
|
Warning Review limit reached
Next review available in: 44 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe admin configuration endpoint now derives the Roblox callback URI from ChangesRoblox redirect URI alignment
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pages/api/admin/instance-config.ts (1)
39-49: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winUse one redirect URI field for every configuration path.
The API returns
redirectUrionly for environment-backed configuration, while the database-backed branch still returnsrobloxRedirectUri. Consequently, the frontend ignores the stored redirect URI and falls back to the browser origin.
pages/api/admin/instance-config.ts#L39-L49: returnredirectUri: configMap.robloxRedirectUri || ''from the database-backed response as well.pages/index.tsx#L344-L344: consume the unifiedredirectUrifield after the API contract is corrected.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pages/api/admin/instance-config.ts` around lines 39 - 49, The database-backed response in pages/api/admin/instance-config.ts must expose the redirect URI through the unified redirectUri field, using configMap.robloxRedirectUri or an empty string; update pages/index.tsx to consume redirectUri consistently instead of the legacy field.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pages/api/admin/instance-config.ts`:
- Around line 25-26: Update the OAuth handlers in roblox start and callback to
use the same NEXTAUTH_URL/PUBLIC_URL-derived callback URI fallback when
ROBLOX_REDIRECT_URI and the database robloxRedirectUri are absent. Keep the
fallback expression consistent across both handlers and preserve matching
GET/POST environment detection so authorization and token exchange use the
identical redirect_uri.
---
Outside diff comments:
In `@pages/api/admin/instance-config.ts`:
- Around line 39-49: The database-backed response in
pages/api/admin/instance-config.ts must expose the redirect URI through the
unified redirectUri field, using configMap.robloxRedirectUri or an empty string;
update pages/index.tsx to consume redirectUri consistently instead of the legacy
field.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 37b4db60-9e60-4219-8235-7d4dbec7aae9
📒 Files selected for processing (2)
pages/api/admin/instance-config.tspages/index.tsx
Summary by CodeRabbit