Repository navigation
refactor(core): restructure core codebase - #277
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo many files! This PR contains 190 files, which is 90 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (190)
You can disable this status message by setting the
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 |
…vtools, @tanstack/react-router-ssr-query, @tanstack/react-start, @tanstack/router-plugin to ^1.170.41, ^1.167.0, ^1.167.3, ^1.168.60, ^1.168.42
| headers: { Referer: "https://app.example.com/dashboard" }, | ||
| }) | ||
| const redirectTo = await createRedirectTo(request, undefined, { | ||
| trustedOrigins: ["https://*.example.com"], |
| test("with trusted origins that are not same origin", async () => { | ||
| const request = new Request("https://example.com/auth/signIn/github") | ||
| const redirectTo = await createRedirectTo(request, "https://api.example.com/redirect", { | ||
| trustedOrigins: ["https://api.example.com"], |
| test("with wildcard pattern and subdomain and valid origin", async () => { | ||
| const request = new Request("https://app.example.com/auth/signIn/github") | ||
| const redirectTo = await createRedirectTo(request, "https://app.example.com/dashboard", { | ||
| trustedOrigins: ["https://*.example.com"], |
| test("with wildcard pattern and subdomain with invalid redirect value", async () => { | ||
| const request = new Request("https://app.example.com/auth/signIn/github") | ||
| const redirectTo = await createRedirectTo(request, "https://malicious.com/phishing", { | ||
| trustedOrigins: ["https://*.example.com"], |
| }, | ||
| }) | ||
| const redirectTo = await createRedirectTo(request, "https://evil.app.example.com/dashboard", { | ||
| trustedOrigins: ["https://*.example.com"], |
| }, | ||
| }) | ||
| const redirectTo = await createRedirectTo(request, "https://evil.example.com/dashboard", { | ||
| trustedOrigins: ["https://*.example.com"], |
| }, | ||
| }) | ||
| const redirectTo = await createRedirectTo(request, "https://evil.example.com/dashboard", { | ||
| trustedOrigins: ["https://*.example.com"], |
Description
This pull request refactors the core package by splitting logic into dedicated files and extracting shared functionality where appropriate.
The goal is to reduce files containing multiple unrelated responsibilities, improve code organization, and make the test suite easier to maintain by grouping related logic together.
Key Changes
configfolder for initial configuration-related logic.sharedinto a dedicatederrorsfolder.oauth/index.tsand improved its organization.