Skip to content

Feat/auth0 server import restructure - #2828

Open
Piyush-85 wants to merge 10 commits into
feat/auth0-server-importfrom
feat/auth0-server-import-restructure
Open

Feat/auth0 server import restructure#2828
Piyush-85 wants to merge 10 commits into
feat/auth0-server-importfrom
feat/auth0-server-import-restructure

Conversation

@Piyush-85

Copy link
Copy Markdown
Contributor

Pure file restructure of src/server/ with no logic changes, in preparation for the @auth0/auth0-server-js migration. Code is relocated verbatim into per-domain folders; the only edits are import-path updates and extracting inline types into dedicated types.ts files that are re-exported so all existing import paths remain valid. Public API is unchanged.

Changes

  • Moved auth-client.ts into its own folder; extracted module-level constants, helpers, error utilities, and inline types into separate files with the class kept whole.
  • Split cookies.ts into chunks.ts (cookie plumbing) and encryption.ts (crypto, the future swap target).
  • Grouped fetcher, proxy, and their types into a fetcher/ folder.
  • Grouped DPoP utilities, retry logic, and types into the existing dpop/ folder.
  • Moved session utility helpers and their tests into the session/ folder; extracted inline types from the session store files.
  • Extracted inline types from the helpers/ handler files into a shared types.ts.
  • Moved MFA utilities and their tests into the mfa/ folder.
  • Moved next-compat.ts and its test into a new http/ folder.
  • Moved feature-domain test files into their respective domain folders (passkey/, passwordless/, my-account/, connected-accounts/).
  • Consolidated core server test files into src/server/tests/.
  • Renamed src/test/ to src/test-fixtures/.

Testing

  • npm run build passes
  • npm run lint passes
  • Full unit suite green (~1902 tests)
  • Diff audit: all relocations are renames with identical content; only import paths changed

Checklist

  • No breaking changes to public API
  • No logic changes
  • All tests pass

@Piyush-85
Piyush-85 requested a review from a team as a code owner August 31, 2026 06:03
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 56567664-b9d9-4210-9d72-451021d46d9b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant