chore: add CodeRabbit configuration#3
Open
frederikprijck wants to merge 1 commit into
Open
Conversation
Add .coderabbit.yaml with review guidance tailored to a TypeScript auth SDK. The config is split into a reusable [BASELINE] section (generic auth SDK + TS/ESM rules, security checks, tools) and an [EXPRESS] section for repo-specific middleware, handler, and AsyncLocalStorage store guidance.
nandan-bhat
reviewed
Jun 19, 2026
| # ════════════════════════════════════════════════════════════════════ | ||
| # [EXPRESS] repo-specific guidance — replace this block in sibling SDKs | ||
| # ════════════════════════════════════════════════════════════════════ | ||
| - path: "packages/**/src/**/*.ts" |
Contributor
There was a problem hiding this comment.
This packages/**/src/**/*.ts path is the same glob already used at line 62 for the security block. path_instructions is an array so it's valid, but do we know if CodeRabbit merges instructions when two entries share a glob, or is it last one wins ? If it's last wins, the big security block loses its glob and all package source only gets this one maxAge line. Safer to fold this line into the security block, or give it a more specific glob.
| reviews: | ||
| # ── [BASELINE] review behavior ────────────────────────────────────────── | ||
| profile: assertive | ||
| request_changes_workflow: false |
Contributor
There was a problem hiding this comment.
Just flagging the combo is intended: profile: assertive means more comments, and request_changes_workflow: false means it never blocks. Fine for an advisory bot, just confirming that's the goal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.coderabbit.yamlwith review guidance tailored to a modern TypeScript-based Express authentication SDK.[BASELINE]— generic to any TS auth SDK: review behavior, path filters, TS/ESM rules, an auth security review block (secrets/token leakage, cookie flags, state/nonce/PKCE, open redirects, token validation, timing-safe comparison, prototype pollution, fail-closed auth), test/example/CI guidance, and tools.[EXPRESS]— repo-specific: cookiemaxAgems/seconds conversion,next(err)middleware handling, OAuth/OIDC handler lifecycle, and AsyncLocalStorage store null-safety.dist/,coverage/,*.d.ts, and the lockfile; skips release PRs.Reuse
Sibling SDKs can copy the
[BASELINE]entries verbatim (or lift them into org-level CodeRabbit config) and replace the[EXPRESS]block. Globs referencingpackages/**/srcmay need adjusting to the target repo's layout.Test plan
.coderabbit.yamlon this PR and posts a review.tools/knowledge_basekeys.