Repository navigation
chore: integrate documentation repository - #2886
Conversation
git-subtree-dir: docs git-subtree-split: 0ac57a0532b13bf722c257c869207806b331acde
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a complete VitePress documentation site under Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan for PR comments
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: 16
Note
Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.
🟡 Minor comments (43)
docs/src/guide/contributing/database-subscribers.md-3-4 (1)
3-4:⚠️ Potential issue | 🟡 MinorCorrect the method name in the description.
The description mentions
setEntitiesForDataSourceOptionsbut this file documents subscribers. It should referencesetSubscribersForDataSourceOptionsinstead.📝 Proposed fix
-To set the provided providers for the typeorm DataSourceOptions, use the method -`setEntitiesForDataSourceOptions`. +To set the provided subscribers for the typeorm DataSourceOptions, use the method +`setSubscribersForDataSourceOptions`.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/database-subscribers.md` around lines 3 - 4, Update the documentation to reference the correct method for subscribers: replace the incorrect method name setEntitiesForDataSourceOptions with setSubscribersForDataSourceOptions in the sentence that explains how to set provided providers for the typeorm DataSourceOptions so the docs correctly point to the subscriber-specific API.docs/src/sdks/javascript/client-web-nuxt/index.md-77-81 (1)
77-81:⚠️ Potential issue | 🟡 MinorLikely incorrect default value for
homeRoute.The comment states
Default: /logoutfor thehomeRouteoption, but this seems incorrect. A "home route" typically defaults to/(root) rather than/logout. Please verify and correct this documentation.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-nuxt/index.md` around lines 77 - 81, The documentation for the homeRoute option incorrectly lists the default as `/logout`; update the comment for the homeRoute option (symbol: homeRoute) to reflect the correct default of `/` (root) in the docs entry so the comment reads "Default: /" and keep the descriptive text ("Path of the home route") unchanged.docs/src/sdks/javascript/client-web-nuxt/route-protection.md-28-28 (1)
28-28:⚠️ Potential issue | 🟡 MinorTypo in option name.
The description says
requiredLoggedOutbut the section header and code example userequireLoggedOut. Please fix for consistency.Suggested fix
-If the `requiredLoggedOut` option is enabled, access to the page component is only allowed if the user is not logged in. +If the `requireLoggedOut` option is enabled, access to the page component is only allowed if the user is not logged in.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-nuxt/route-protection.md` at line 28, The text uses inconsistent option names—`requiredLoggedOut` in the sentence vs `requireLoggedOut` in the header and examples—so standardize to one name across the doc; update the sentence to use `requireLoggedOut` (or alternatively change header/examples to `requiredLoggedOut`) so the option string referenced in the prose, header, and code examples all match (look for occurrences of "requiredLoggedOut" and "requireLoggedOut" and make them identical, e.g., replace the sentence's `requiredLoggedOut` with `requireLoggedOut`).docs/src/guide/deployment/bare-metal.md-83-83 (1)
83-83:⚠️ Potential issue | 🟡 MinorFix the typo in the closing paragraph.
lunchshould belaunch.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/bare-metal.md` at line 83, Update the closing paragraph text "This will lunch the following application with default settings:" by correcting the typo: change "lunch" to "launch" so the sentence reads "This will launch the following application with default settings:"; locate the exact sentence in the docs and replace the single word accordingly.docs/src/guide/deployment/configuration-server-core-smtp.md-8-9 (1)
8-9:⚠️ Potential issue | 🟡 MinorFix the typo in the warning callout.
connecting stringshould beconnection string.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/configuration-server-core-smtp.md` around lines 8 - 9, Replace the typo in the warning callout: change the phrase "connecting string" to "connection string" so the sentence reads that only a boolean or a connection string can be specified; update the markdown text containing "connecting string" accordingly.docs/src/guide/deployment/configuration-server-core.md-52-55 (1)
52-55:⚠️ Potential issue | 🟡 MinorAlign the documented refresh-token default.
The prose says
259,200s / 3 days, but the example value is259_000. One of those numbers is wrong.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/configuration-server-core.md` around lines 52 - 55, The documentation mismatch: the prose says refresh token default is 259,200 seconds (3 days) but the example sets tokenRefreshMaxAge to 259_000; update them to match by setting the example value tokenRefreshMaxAge to 259_200 (or alternately adjust the prose to match 259_000) so both the comment and the example use the same numeric default; reference tokenRefreshMaxAge in the doc and ensure the numeric literal uses underscores consistently (e.g., 259_200) to improve readability.docs/src/guide/deployment/bare-metal.md-17-18 (1)
17-18:⚠️ Potential issue | 🟡 MinorDrop the shell prompts in these command blocks.
These snippets use
$without showing output, which is exactly whatMD014is flagging here and makes copy/paste a bit noisier than necessary.✂️ Suggested cleanup
-$ mkdir authup && cd authup +mkdir authup && cd authup ... -$ npm init +npm init ... -$ npm install authup --save +npm install authup --save ... -$ npm run start +npm run startAlso applies to: 23-24, 31-32, 55-56
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/bare-metal.md` around lines 17 - 18, Remove the leading shell prompt characters from the bash code fences so commands are plain and copy/paste friendly; e.g., change lines containing commands like "$ mkdir authup && cd authup" and the other occurrences (the subsequent bash fences around the commands at the other noted spots) to just "mkdir authup && cd authup" (and similarly strip "$" from each command in the other bash blocks). Ensure all bash code fences in this document no longer include "$" or other shell prompts but keep the language marker (```bash) intact.docs/.eslintrc-23-25 (1)
23-25:⚠️ Potential issue | 🟡 MinorIgnore the whole
disttree, not just its direct children.
**/dist/*only matches direct children ofdistdirectories and will miss nested output likedist/assets/..., so generated docs can still get picked up by linting.🧹 Suggested fix
- "**/dist/*", + "**/dist/**",🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/.eslintrc` around lines 23 - 25, The ignorePatterns entry currently uses "**/dist/*" which only ignores direct children; update the pattern in the "ignorePatterns" array to ignore entire dist trees (for example replace "**/dist/*" with "**/dist/**" or "dist/**") so nested files like dist/assets/... are also ignored by ESLint.docs/src/guide/deployment/nginx.md-60-60 (1)
60-60:⚠️ Potential issue | 🟡 MinorUse the hyphenated form here.
Linux-basedreads correctly in this sentence and avoids the published grammar issue.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/nginx.md` at line 60, Replace the unhyphenated phrase "Linux based" with the hyphenated form "Linux-based" in the sentence that starts "The easiest way to set up a certificate..." so the line reads "On a Linux-based system, letsencrypt can be installed with the following command." This ensures correct grammar and consistency in the docs.docs/src/guide/deployment/configuration-server-core-vault.md-3-3 (1)
3-3:⚠️ Potential issue | 🟡 MinorReword the Vault description.
Saying Vault manages robot credentials “in plain text” reads as if plaintext storage is the goal. Please clarify that Vault is used to avoid keeping those credentials in plain text.
Suggested wording
-Vault is used to securely manage the credentials of robot accounts in plain text. +Vault is used to securely manage robot account credentials instead of keeping them in plain text.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/configuration-server-core-vault.md` at line 3, Replace the sentence "Vault is used to securely manage the credentials of robot accounts in plain text." with wording that clarifies Vault prevents storing credentials in plaintext and centrally manages secrets (e.g., "Vault is used to securely store and manage robot account credentials so they are not kept in plain text, providing centralized secret management and access controls"); update the sentence in docs/src/guide/deployment/configuration-server-core-vault.md where the current Vault description appears.docs/src/guide/user/permissions-and-policies.md-1-1 (1)
1-1:⚠️ Potential issue | 🟡 MinorFix typo in heading.
The heading contains a typo: "Polices" should be "Policies".
✏️ Proposed fix
-# Permissions & Polices +# Permissions & Policies🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/user/permissions-and-policies.md` at line 1, Fix the typo in the Markdown heading by changing "Permissions & Polices" to "Permissions & Policies" in the document (update the heading text string "Permissions & Polices" to "Permissions & Policies").docs/src/sdks/javascript/access/permission-checker.md-14-34 (1)
14-34:⚠️ Potential issue | 🟡 MinorFix typo in import statement.
Line 15 contains a typo in the package name:
@auhtup/accessshould be@authup/access. This would cause an import error if users copy this code.✏️ Proposed fix
-import { PermissionMemoryProvider } from '@auhtup/access'; +import { PermissionMemoryProvider } from '@authup/access';🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/permission-checker.md` around lines 14 - 34, The import in the example is misspelled; update the import statement to use the correct package name '@authup/access' (so PermissionMemoryProvider resolves) in the code block that defines items, provider, and instantiates PermissionMemoryProvider; ensure the example imports PermissionMemoryProvider from '@authup/access' instead of '@auhtup/access'.docs/src/sdks/javascript/access/permission-checker.md-42-79 (1)
42-79:⚠️ Potential issue | 🟡 MinorFix typo in comment.
Line 57 contains a typo: "allways" should be "always".
✏️ Proposed fix
-// success (allways) - no restrictions/policies +// success (always) - no restrictions/policies🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/permission-checker.md` around lines 42 - 79, Update the typo in the documentation comment: change "allways" to "always" in the example comment near the PermissionChecker usage so the inline comment reads "success (always) - no restrictions/policies"; locate the text around the PermissionChecker and PermissionMemoryProvider example and correct the spelling only.docs/src/guide/development/api-examples.md-69-92 (1)
69-92:⚠️ Potential issue | 🟡 MinorFix incorrect code fence language identifier.
Line 71 uses
sshas the code fence language identifier, which is incorrect. Useshell,sh, orbashinstead for shell commands.✏️ Proposed fix
-```ssh +```shell curl -X POST 'http://localhost:3001/permissions' \ -H 'Authorization: Bearer ***' \ -H 'Content-Type: application/json' \🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/api-examples.md` around lines 69 - 92, Replace the incorrect code-fence language identifier 'ssh' used for the curl command block with a proper shell identifier ('shell', 'sh', or 'bash') so syntax highlighting is correct; locate the fenced block starting with ```ssh that contains the curl POST to '/permissions' and change the fence to ```shell (or ```bash/```sh) to fix the language tag.docs/src/guide/development/api-examples.md-94-115 (1)
94-115:⚠️ Potential issue | 🟡 MinorFix code fence syntax issues.
Line 96 uses
sshinstead ofshellfor the code fence language identifier, and lines 107-115 use four backticks instead of the standard three.✏️ Proposed fix
-```ssh +```shell curl -X POST 'http://localhost:3001/permissions/profile_edit' \ -H 'Authorization: Bearer ***' \ -H 'Content-Type: application/json' \And fix the response code fence:
### Response -````json +```json { "id": "***", "built_in": false, "name": "profile_edit", "display_name": "Modify Profile", "description": "Allows users to modify their own profile information." } -```` +```🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/api-examples.md` around lines 94 - 115, Update the markdown code fences: change the request block's opening fence from ```ssh to ```shell for the curl snippet (the block that starts with "curl -X POST 'http://localhost:3001/permissions/profile_edit' ...") and replace the response block's nonstandard four-backtick fence with a standard three-backtick fence for the JSON block (the block that contains the object with "id", "built_in", "name", "display_name", and "description"). Ensure both fences use the correct language identifiers (shell and json) and close with exactly three backticks.docs/src/guide/development/api-examples.md-117-134 (1)
117-134:⚠️ Potential issue | 🟡 MinorFix code fence syntax issues.
Line 120 uses
sshinstead ofshell, and lines 126-134 use four backticks instead of three.✏️ Proposed fix
-```ssh +```shell curl -X DELETE 'http://localhost:3001/permissions/profile_edit' \ -H 'Authorization: Bearer ***'And fix the response code fence:
### Response -````json +```json { "id": "***", "built_in": false, "name": "profile_edit", "display_name": "Modify Profile", "description": "Allows users to modify their own profile information." } -```` +```🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/api-examples.md` around lines 117 - 134, Update the code fences in the DELETE Record example: change the shell fence language from "ssh" to "shell" for the curl command (the opening fence around the curl example) and replace the incorrect four-backtick closing JSON fence with a standard three-backtick code fence for the response block so the JSON block under the "Response" heading is properly fenced; locate and edit the fences surrounding the curl example and the JSON response block in the DELETE Record section to use "```shell" and "```" respectively.docs/src/guide/contributing/controllers.md-14-24 (1)
14-24:⚠️ Potential issue | 🟡 MinorRemove duplicate and clarify placeholder comments.
The comment "Register controllers" appears twice (lines 17 and 20), and the placeholder comments don't clearly demonstrate the intended middleware/controller registration flow. This appears to be leftover from a template.
📝 Proposed fix to clarify the example
const router = new Router(); -// Register middlewares +// Register common middlewares /* ... */ // Register controllers -/* ... */ - -// Register controllers registerControllers(router); // Register error middleware /* ... */ - router.listen(3010);🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/controllers.md` around lines 14 - 24, The duplicate placeholder comment "Register controllers" should be removed and the remaining comments clarified around the registerControllers(router) call; update the surrounding comments to show one clear sequence (e.g., "Register middlewares", "Register controllers", "Register error middleware") so the single call to registerControllers(router) is only annotated once and the example flow is explicit.docs/src/getting-started/index.md-7-7 (1)
7-7:⚠️ Potential issue | 🟡 MinorFix possessive pronoun: "it's" → "its".
Line 7 incorrectly uses the contraction "it's" (it is) instead of the possessive pronoun "its".
📝 Proposed fix
-It comes with a fully featured admin panel giving you access to it's powerful REST API for user and permission +It comes with a fully featured admin panel giving you access to its powerful REST API for user and permission🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/getting-started/index.md` at line 7, The text contains a wrong possessive: replace the contraction "it's" with the possessive pronoun "its" in the sentence that includes the phrase "giving you access to it's powerful REST API" so it reads "giving you access to its powerful REST API"; update the markdown line accordingly in docs/src/getting-started/index.md.docs/src/guide/contributing/shared-key-pair.md-72-72 (1)
72-72:⚠️ Potential issue | 🟡 MinorFix typo: "disc" → "disk".
The word "disc" should be "disk" in American English technical documentation.
📝 Proposed fix
-The method `deleteKeyPair()` will attempt to delete the specified key-pair on disc. +The method `deleteKeyPair()` will attempt to delete the specified key-pair on disk.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/shared-key-pair.md` at line 72, The sentence describing the method deleteKeyPair() uses the incorrect word "disc"; update the documentation string so it reads "The method deleteKeyPair() will attempt to delete the specified key-pair on disk." — locate the occurrence of "disc" near the deleteKeyPair() description and replace it with "disk" to correct the typo.docs/src/guide/contributing/shared-sign-verify.md-80-80 (1)
80-80:⚠️ Potential issue | 🟡 MinorFix incorrect function name in documentation.
The description refers to
decodeToken()but this section documentsverifyToken().📝 Proposed fix
-The method `decodeToken()` can be used to decode and verify a JWT token. +The method `verifyToken()` can be used to decode and verify a JWT token.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/shared-sign-verify.md` at line 80, The documentation incorrectly names the function as decodeToken(); update the text to reference verifyToken() instead. Replace the mention of decodeToken() with verifyToken() in the sentence describing decoding and verifying a JWT so the docs match the implemented function name (verifyToken) and avoid confusion for readers.docs/src/guide/contributing/shared-sign-verify.md-105-108 (1)
105-108:⚠️ Potential issue | 🟡 MinorFix incorrect import in example.
The example imports
signTokenbut usesverifyToken.📝 Proposed fix
import { - signToken + verifyToken } from "@authup/server-utils";🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/shared-sign-verify.md` around lines 105 - 108, The example imports signToken but the code calls verifyToken; update the import statement to import the correct symbol (verifyToken) from "@authup/server-utils" or import both signToken and verifyToken if both are used, ensuring the imported identifier(s) match the function call(s) (refer to signToken and verifyToken in the example).docs/src/guide/development/api-error-handling.md-3-3 (1)
3-3:⚠️ Potential issue | 🟡 MinorFix grammar: "successfully" → "successful".
The sentence contains a grammatical error. "Successfully" is an adverb and cannot follow "be" in this context.
📝 Proposed fix
-Depending on the request payload, the request might not be successfully. In that case, +Depending on the request payload, the request might not be successful. In that case,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/api-error-handling.md` at line 3, The sentence "Depending on the request payload, the request might not be successfully." contains a grammar error: replace the adverb "successfully" with the adjective "successful" so it reads "Depending on the request payload, the request might not be successful." Locate the sentence (the string "Depending on the request payload, the request might not be successfully.") in docs/src/guide/development/api-error-handling.md and update it accordingly.docs/src/guide/development/contributing.md-13-13 (1)
13-13:⚠️ Potential issue | 🟡 MinorAdd
.mdextension to the "quick-start" link for consistency.The link to
quick-startis inconsistent with all other links in the document, which use.mdextensions (lines 9–11). Change(quick-start)to(quick-start.md)to maintain consistency.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/contributing.md` at line 13, Update the markdown link in the sentence containing "After that you are ready to setup the [development environment](quick-start)" to use the .md extension so it reads "(quick-start.md)"; modify the link target in that sentence to match the other links' style (e.g., lines referencing quick-start) so consistency is preserved across the document.docs/src/guide/development/integration.md-11-12 (1)
11-12:⚠️ Potential issue | 🟡 MinorRender the placeholder URL as literal text.
Line 12 uses
http://<API_URL>/docsin plain markdown text. The angle-bracket placeholder can be treated as HTML-like markup by the renderer, so readers may not see the URL exactly as intended. Wrapping it in backticks or escaping the brackets would avoid that.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/integration.md` around lines 11 - 12, The markdown currently includes the literal string "http://<API_URL>/docs" which may be treated as HTML and not render correctly; update the text that contains "http://<API_URL>/docs" (the API docs link in the API Workflows paragraph) to render the placeholder as literal text by either wrapping it in backticks (inline code) or escaping the angle brackets so the URL appears exactly as intended in the docs.docs/src/guide/development/submission-guidelines.md-3-3 (1)
3-3:⚠️ Potential issue | 🟡 MinorRemove the extra space in the heading.
Line 3 has two spaces after
##, which trips markdownlint (MD019) and creates avoidable docs-check noise.Proposed fix
-## Submitting an Issue +## Submitting an Issue🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/submission-guidelines.md` at line 3, The markdown heading "## Submitting an Issue" contains an extra space after the "##" which triggers MD019; update the heading in docs/src/guide/development/submission-guidelines.md by removing the extra space so it reads "## Submitting an Issue" (locate the line containing the "Submitting an Issue" heading and collapse the double space to a single space).docs/src/guide/development/code-of-conduct.md-35-37 (1)
35-37:⚠️ Potential issue | 🟡 MinorFix the broken contact sentence.
Line 36 splits
pleaseacross two lines, which renders awkwardly in the escalation instructions and looks like a typo.Proposed fix
-If you feel uncomfortable or believe that someone has violated the code of conduct, p -lease contact us at [[email protected]](mailto:[email protected]). +If you feel uncomfortable or believe that someone has violated the code of conduct, please contact us at [[email protected]](mailto:[email protected]).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/code-of-conduct.md` around lines 35 - 37, The contact sentence under the "## Contact" heading has "please" split across two lines; fix the sentence in the contact paragraph (the line containing the email link) by joining the split word so it reads: "If you feel uncomfortable or believe that someone has violated the code of conduct, please contact us at [[email protected]](mailto:[email protected])."docs/src/guide/development/quick-start.md-33-40 (1)
33-40:⚠️ Potential issue | 🟡 MinorDrop the shell prompts from these command blocks.
Lines 34 and 40 include
$even though no command output is shown. That triggers markdownlint (MD014) and makes copy/paste slightly worse.Proposed fix
-$ npm run cli-dev --workspace=packages/server-core -- start +npm run cli-dev --workspace=packages/server-core -- start ... -$ npm run dev --workspace=packages/client-web +npm run dev --workspace=packages/client-web🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/quick-start.md` around lines 33 - 40, Remove the leading shell prompt (`$ `) from the two fenced code blocks that show the commands "npm run cli-dev --workspace=packages/server-core -- start" and "npm run dev --workspace=packages/client-web" so the blocks contain only the raw commands (no `$`), which will satisfy markdownlint MD014 and make the commands copy/paste-friendly.docs/src/sdks/javascript/client-web-kit/collections.md-32-95 (1)
32-95:⚠️ Potential issue | 🟡 MinorMake the main usage snippet self-contained.
<ListHeader>is used here without being imported or registered, so a reader copying this example gets an unknown component immediately. Either import that component or replace it with one already defined in the snippet.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 32 - 95, The example uses <ListHeader> without importing or registering it, causing an unknown component error; update the component list in the export default's components object (where ASearch, ATitle, APagination, AUsers are registered) to also register ListHeader (or replace the <ListHeader> usage in the template with an existing registered component such as ATitle) so the snippet is self-contained and copy-pasteable.docs/src/sdks/javascript/client-web-kit/collections.md-124-126 (1)
124-126:⚠️ Potential issue | 🟡 MinorPoint the
rapiqtip to the actual documentation.The current link target is a GitHub profile, not documentation for the package mentioned in the note, so the reference is effectively broken for readers.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 124 - 126, Update the tip block that currently links the text "rapiq" to a GitHub profile by replacing the URL with the official rapiq documentation URL (or the package README/docs page) so the tip points to actual documentation; locate the tip containing the text "For this purpose [rapiq]" in the collections.md and update the link target to the correct docs/README for rapiq while keeping the visible text unchanged.docs/src/sdks/javascript/server-adapter/socket-middleware.md-15-21 (1)
15-21:⚠️ Potential issue | 🟡 MinorUse the same middleware helper name in prose and code.
The text mentions
createSocketMiddleware, but the example importscreateMiddleware. One of those names is wrong, and readers will end up looking for the wrong API.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/server-adapter/socket-middleware.md` around lines 15 - 21, The prose and example use different helper names—refer to the actual exported function and make both match: either change all prose references of createSocketMiddleware to createMiddleware, or update the import/example to import createSocketMiddleware; locate the real export (createSocketMiddleware or createMiddleware) in the SDK code and update the markdown text and the example import/usage so the helper name is identical across prose and code samples (references: createSocketMiddleware, createMiddleware).docs/src/sdks/javascript/index.md-1-1 (1)
1-1:⚠️ Potential issue | 🟡 MinorFix the page title typo.
JavasScriptshould beJavaScript.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/index.md` at line 1, The page title has a typo: update the top-level header in docs/src/sdks/javascript/index.md from "JavasScript" to the correct spelling "JavaScript" (edit the "# JavasScript" line to "# JavaScript").docs/src/sdks/javascript/server-adapter/socket-middleware.md-59-59 (1)
59-59:⚠️ Potential issue | 🟡 MinorFill in or remove the empty API reference link.
The empty markdown link renders as dead navigation and trips markdownlint.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/server-adapter/socket-middleware.md` at line 59, The markdown line "For more details check out, the [API Reference]()." contains an empty link which creates dead navigation; either replace the empty parentheses with the correct API Reference URL or remove the link syntax and leave plain text "API Reference" (or remove the whole sentence) to satisfy markdownlint and avoid a dead link—update the line accordingly in the socket-middleware documentation.docs/src/sdks/javascript/server-adapter/http-middleware.md-56-56 (1)
56-56:⚠️ Potential issue | 🟡 MinorFill in or remove the empty API reference link.
The empty markdown link renders as dead navigation and trips markdownlint.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/server-adapter/http-middleware.md` at line 56, Replace or remove the empty markdown link in the line containing "For more details check out, the [API Reference]()." — either fill the parentheses with the correct API reference URL or change the sentence to a valid link or plain text (e.g., "For more details check out the API Reference: <URL>" or "For more details, see the API Reference.") so the markdown link is not empty and markdownlint no longer flags it.docs/src/sdks/javascript/server-adapter/http-middleware.md-31-31 (1)
31-31:⚠️ Potential issue | 🟡 MinorFix the copied setup comment.
Line 31 still says “socket middleware for socket server”, but this page documents the HTTP middleware. That makes the example look copy-pasted from the Socket.IO page.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/server-adapter/http-middleware.md` at line 31, The inline comment "socket middleware for socket server" is incorrect for this HTTP middleware docs page; update the comment to accurately describe HTTP middleware setup (e.g., "setup HTTP middleware for the server" or "setup HTTP middleware for Express/Koa") so it no longer looks copy-pasted from the Socket.IO page and clearly indicates this example is for HTTP middleware in the server-adapter example.docs/src/sdks/javascript/client-web-kit/forms.md-22-39 (1)
22-39:⚠️ Potential issue | 🟡 MinorAlign the example with the explanation.
The text says the entity acts as a template when it has no
id, but the sample immediately includes anid. That makes the create-vs-update behavior unclear for readers.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-kit/forms.md` around lines 22 - 39, The example for AUserForm contradicts the prose: it claims an entity with no id is treated as a template, but the sample entity includes id: 'xxx'; update the example so the entity object used in setup() omits the id property (or provide two clear examples showing create (no id) vs update (with id)) and ensure references to AUserForm and the entity variable reflect that change so readers can see the create-vs-update behavior clearly.docs/src/getting-started/features.md-5-17 (1)
5-17:⚠️ Potential issue | 🟡 MinorPolish the feature bullets before publishing.
Several bullets read awkwardly or use inconsistent naming/casing (
Identity- & Access-Management,Single-Sign On,Easy enable social login, lowercaseauthup). Since this page is introductory, these copy issues make the docs feel unfinished.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/getting-started/features.md` around lines 5 - 17, Normalize and polish the feature bullets: change "Identity- & Access-Management" to "Identity and Access Management", "Single-Sign On" to "Single Sign-On", "Easy enable social login" to "Easy-to-enable social login" (or "Easy social login"), capitalize "authup" to "Authup" where referenced, make "Isomorphic & declarative permission management." consistent (e.g., "Isomorphic and declarative permission management"), and ensure consistent punctuation/casing across items like "Clustering", "Fast & Reliable" (consider "Fast and reliable"), "Logging & Monitoring" (consider "Logging and monitoring"), and "Standard Protocols" entries for a unified style.docs/src/guide/development/projects.md-19-20 (1)
19-20:⚠️ Potential issue | 🟡 MinorFix the PrivateAIM GitHub link.
PrviateAIMis misspelled, so the organization link is broken.Suggested fix
-- **GitHub**: [Organisation](https://github.com/PrviateAIM) +- **GitHub**: [Organisation](https://github.com/PrivateAIM)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/development/projects.md` around lines 19 - 20, Update the broken GitHub organization link by fixing the misspelling "PrviateAIM" to "PrivateAIM" in the Markdown entry (the line with **GitHub**: [Organisation](https://github.com/PrviateAIM)); replace the URL to the correct organization URL https://github.com/PrivateAIM and ensure the display text remains appropriate (e.g., "Organisation" or "GitHub").docs/src/.vitepress/config.mjs-152-154 (1)
152-154:⚠️ Potential issue | 🟡 MinorFix the
SKDstypo.This is user-facing nav text, so it should read
SDKs.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/.vitepress/config.mjs` around lines 152 - 154, The navigation entry currently reads 'SKDs' and should be corrected to 'SDKs' in the nav items array; locate the object with { text: 'SKDs', link: '/guide/development/sdks' } and update the text value to 'SDKs' so the user-facing navigation displays the correct capitalization.docs/src/sdks/javascript/access/policies.md-164-166 (1)
164-166:⚠️ Potential issue | 🟡 MinorAvoid shipping a visible TODO section.
The page exposes
Permission Bindingin the TOC and then renders onlyTODO. Either document this section before merge or remove the heading from this PR so the published docs do not dead-end here.Would you like me to draft that section or turn it into a follow-up issue?
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/policies.md` around lines 164 - 166, The "Permission Binding" heading currently renders only "TODO" which leaves a dead-end in the docs and appears in the TOC; either replace the placeholder with a minimal explanatory section (describe what Permission Binding is, expected behavior, examples of usage and links to related policy APIs) under the "Permission Binding" heading or remove the heading and its TOC entry from the markdown to avoid publishing a visible TODO; update the file's heading "Permission Binding" accordingly and ensure any cross-links or TOC generation reflect the change.docs/src/sdks/javascript/access/api-reference.md-1-1 (1)
1-1:⚠️ Potential issue | 🟡 MinorRename the page heading.
The page is linked as the access package API reference, but the H1 is
System. That title will be confusing in page metadata and search results; it should match the content, e.g.API ReferenceorAccess API Reference.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/api-reference.md` at line 1, The page H1 currently reads "System" which doesn't match the linked content; update the heading string "System" (the top-level H1) to a clearer title such as "Access API Reference" (or "API Reference") so the page metadata and search results match the access package API reference.docs/src/sdks/javascript/access/policies.md-53-53 (1)
53-53:⚠️ Potential issue | 🟡 MinorUpdate the MongoDB query docs link.
This URL now redirects to the generic MongoDB manual landing page, so readers will not land on the operator reference promised by the text. Point it at the current query/operator reference directly, or drop this line and rely on the operator-specific links below. (docs.mongodb.org)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/policies.md` at line 53, The markdown line containing "One or many conditions can be specified using the MongoDB [query language]" points to an outdated URL; update that link to the up-to-date MongoDB query/operator reference (for example https://www.mongodb.com/docs/manual/reference/operator/query/) or remove the line and rely on the operator-specific links below so readers land on the actual operator reference rather than the generic manual landing page.docs/src/sdks/javascript/access/api-reference.md-7-12 (1)
7-12:⚠️ Potential issue | 🟡 MinorAdd the missing import for
PolicyInputor remove the import statement to clarify this is an excerpt.The snippet uses
PolicyInputon line 11 but does not import it. If copied into TypeScript as-is, it will not resolve. Either addimport { PolicyInput } from '@authup/access';(or wherever it should come from) or remove thePermissionCheckerCheckOptionsimport to indicate this is a documentation excerpt rather than standalone code.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/api-reference.md` around lines 7 - 12, The snippet references PolicyInput but does not import it; update the module imports so PolicyInput is imported alongside PermissionCheckerCheckOptions (e.g., add an import for PolicyInput from the same package) or, if this is meant to be an excerpt, remove the standalone import of PermissionCheckerCheckOptions and clarify it’s partial; specifically update the top import line that currently imports PermissionCheckerCheckOptions to also import PolicyInput (or remove that import entirely) so the PermissionCheckerCheckContext type definition resolves.docs/src/.vitepress/config.mjs-15-18 (1)
15-18:⚠️ Potential issue | 🟡 MinorNarrow the Home
activeMatchpattern to avoid activating on all routes.VitePress treats
activeMatchas a regex pattern string. When passed tonew RegExp(pattern), the pattern'/'matches any path containing a forward slash. Since all normalized page paths start with/, Home will be highlighted on every route. Use'^/$'instead to match only the root path.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/.vitepress/config.mjs` around lines 15 - 18, The Home nav item is using activeMatch: '/' which matches every path; update the Home nav object (the entry with text: 'Home' and activeMatch) to use a stricter regex string '^/$' instead of '/' so only the root path is matched (ensure the activeMatch value for that Home config is replaced with '^/$').
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ce728f20-ec9a-45f2-8c41-fb8e56577e50
⛔ Files ignored due to path filters (2)
docs/package-lock.jsonis excluded by!**/package-lock.jsonpackage-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (81)
docs/.editorconfigdocs/.eslintrcdocs/.gitignoredocs/CNAMEdocs/README.mddocs/package.jsondocs/src/.vitepress/config.mjsdocs/src/about/team.mddocs/src/about/team.vuedocs/src/getting-started/architecture.mddocs/src/getting-started/features.mddocs/src/getting-started/guides.mddocs/src/getting-started/index.mddocs/src/guide/contributing/controllers.mddocs/src/guide/contributing/database-entities.mddocs/src/guide/contributing/database-installation.mddocs/src/guide/contributing/database-oauth2.mddocs/src/guide/contributing/database-seeds.mddocs/src/guide/contributing/database-subscribers.mddocs/src/guide/contributing/installation.mddocs/src/guide/contributing/middlewares.mddocs/src/guide/contributing/shared-hash.mddocs/src/guide/contributing/shared-installation.mddocs/src/guide/contributing/shared-key-pair.mddocs/src/guide/contributing/shared-sign-verify.mddocs/src/guide/deployment/bare-metal.mddocs/src/guide/deployment/configuration-client-web.mddocs/src/guide/deployment/configuration-server-core-database.mddocs/src/guide/deployment/configuration-server-core-redis.mddocs/src/guide/deployment/configuration-server-core-smtp.mddocs/src/guide/deployment/configuration-server-core-vault.mddocs/src/guide/deployment/configuration-server-core.mddocs/src/guide/deployment/configuration.mddocs/src/guide/deployment/docker-compose.mddocs/src/guide/deployment/docker.mddocs/src/guide/deployment/index.mddocs/src/guide/deployment/nginx.mddocs/src/guide/development/api-error-handling.mddocs/src/guide/development/api-examples.mddocs/src/guide/development/api-introduction.mddocs/src/guide/development/api-oauth2.mddocs/src/guide/development/code-of-conduct.mddocs/src/guide/development/contributing.mddocs/src/guide/development/faq.mddocs/src/guide/development/index.mddocs/src/guide/development/integration.mddocs/src/guide/development/projects.mddocs/src/guide/development/quick-start.mddocs/src/guide/development/repository-structure.mddocs/src/guide/development/sdks.mddocs/src/guide/development/submission-guidelines.mddocs/src/guide/development/workflow.mddocs/src/guide/user/contact.mddocs/src/guide/user/faq.mddocs/src/guide/user/index.mddocs/src/guide/user/permissions-and-policies.mddocs/src/index.mddocs/src/sdks/javascript/access/api-reference.mddocs/src/sdks/javascript/access/index.mddocs/src/sdks/javascript/access/permission-checker.mddocs/src/sdks/javascript/access/policies.mddocs/src/sdks/javascript/client-web-kit/collections.mddocs/src/sdks/javascript/client-web-kit/forms.mddocs/src/sdks/javascript/client-web-kit/index.mddocs/src/sdks/javascript/client-web-kit/records.mddocs/src/sdks/javascript/client-web-kit/session.mddocs/src/sdks/javascript/client-web-nuxt/index.mddocs/src/sdks/javascript/client-web-nuxt/route-protection.mddocs/src/sdks/javascript/core-http-kit/client.mddocs/src/sdks/javascript/core-http-kit/index.mddocs/src/sdks/javascript/core-http-kit/interceptor.mddocs/src/sdks/javascript/core-http-kit/token-creator.mddocs/src/sdks/javascript/core-http-kit/token-verifier.mddocs/src/sdks/javascript/core-kit/api-reference.mddocs/src/sdks/javascript/core-kit/index.mddocs/src/sdks/javascript/index.mddocs/src/sdks/javascript/server-adapter/http-middleware.mddocs/src/sdks/javascript/server-adapter/index.mddocs/src/sdks/javascript/server-adapter/socket-middleware.mddocs/src/sdks/python/index.mdpackage.json
| # Documentation 📖 | ||
|
|
||
| [](https://github.com/authup/documentation/actions/workflows/main.yml) | ||
|
|
||
| This repository contains: | ||
| - markdown files | ||
| - images | ||
|
|
||
| to be compiled into the documentation hosted on [GitHub Pages](https://authup.net). | ||
|
|
||
| ## Contributing | ||
|
|
||
| 1. Clone Repository | ||
|
|
||
| ```shell | ||
| git clone https://github.com/authup/documentation | ||
| ``` | ||
|
|
||
| 2. Install dependencies | ||
|
|
||
| ```shell | ||
| npm i | ||
| ``` | ||
|
|
||
| 3. Run docs generation with HMR: | ||
|
|
||
| ```shell | ||
| npm run dev | ||
| ``` |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify if authup/documentation is a separate repository or if docs should be part of authup/authup
# Check if there's a GitHub Actions workflow for docs in this repository
fd -t f 'main.yml' .github/workflows --exec cat {}
# Check repository structure
echo "=== Current repository structure ==="
ls -laRepository: authup/authup
Length of output: 7190
🏁 Script executed:
cat -n docs/README.mdRepository: authup/authup
Length of output: 786
🏁 Script executed:
fd -t f '\.yml' .github/workflows | head -20Repository: authup/authup
Length of output: 273
🏁 Script executed:
ls -la .github/workflows/Repository: authup/authup
Length of output: 602
🏁 Script executed:
grep -r "docs" .github/workflows/ --include="*.yml" -iRepository: authup/authup
Length of output: 540
🏁 Script executed:
grep -r "github.pages" .github/workflows/ --include="*.yml" -iRepository: authup/authup
Length of output: 39
🏁 Script executed:
cat .github/workflows/main.yml | grep -A 5 -B 5 "docs\|pages" -iRepository: authup/authup
Length of output: 39
🏁 Script executed:
grep -A 5 -B 5 "docs\|dev" package.json | head -40Repository: authup/authup
Length of output: 675
🏁 Script executed:
ls -la docs/Repository: authup/authup
Length of output: 677
🏁 Script executed:
cat -n docs/package.json 2>/dev/null || echo "No docs/package.json found"Repository: authup/authup
Length of output: 1101
🏁 Script executed:
find . -name "vitepress.config*" -o -name ".nojekyll" -o -name "_config.yml" 2>/dev/null | head -20Repository: authup/authup
Length of output: 39
🏁 Script executed:
rg "authup/documentation" --type markdown --type jsonRepository: authup/authup
Length of output: 373
🏁 Script executed:
cat docs/src/.vitepress/config.ts 2>/dev/null | head -50 || echo "No vitepress config found"Repository: authup/authup
Length of output: 39
🏁 Script executed:
cat .github/workflows/main.yml | grep -i "pages\|docs\|deploy\|publish" -A 3 -B 3 || echo "No docs/pages/deploy references found in main.yml"Repository: authup/authup
Length of output: 106
🏁 Script executed:
git log --oneline --all --grep="docs" -- "docs/README.md" 2>/dev/null | head -5 || echo "No git history available"Repository: authup/authup
Length of output: 39
Update repository references to reflect docs integration into authup/authup.
The docs/README.md and docs/package.json files incorrectly reference authup/documentation repository, which will misdirect contributors. These should reference the main authup/authup repository since docs are now part of this monorepo.
Files requiring updates:
- docs/README.md (lines 3, 16): Change
authup/documentationreferences toauthup/authup, and update clone instructions togit clone https://github.com/authup/authupfollowed bycd docs - docs/package.json (line 8): Change repository URL from
https://github.com/authup/documentation.gittohttps://github.com/authup/authup.git
Note: The proposed GitHub Actions workflow reference in the badge should be verified—no docs.yml workflow currently exists in .github/workflows/. The badge may need to reference an existing workflow or be updated once docs deployment automation is in place.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/README.md` around lines 1 - 29, Replace all references to
"authup/documentation" with "authup/authup" in docs/README.md (including the
repo string in the badge and the clone instructions), update the clone step to
"git clone https://github.com/authup/authup" followed by "cd docs" in the
README, and update the repository URL in docs/package.json from
"https://github.com/authup/documentation.git" to
"https://github.com/authup/authup.git"; also check the badge workflow reference
(the "[" string) and point it
to an existing workflow or remove/update it if no corresponding workflow exists.
| ### 1. Password Flow | ||
|
|
||
| The Password Grant Flow is used when the client application can directly access the user's credentials. | ||
| This flow allows the client to exchange the user's username and password for an access token. | ||
| It is most often used for trusted applications like mobile apps or desktop apps. |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
find . -name "api-oauth2.md" -o -name "*oauth2*" | grep -E "\.(md|txt)$" | head -20Repository: authup/authup
Length of output: 148
🏁 Script executed:
git ls-files | grep -i oauthRepository: authup/authup
Length of output: 8211
🌐 Web query:
RFC 9700 OAuth 2.0 password grant deprecation recommendation
💡 Result:
RFC 9700 (OAuth 2.0 Security Best Current Practice, January 2025) explicitly deprecates the OAuth 2.0 Resource Owner Password Credentials (password) grant by stating it “MUST NOT be used” because it exposes the user’s credentials to the client, increases credential leak/attack surface, and effectively trains users to enter passwords outside the authorization server; it also doesn’t work well with MFA and modern multi-step / cryptographic authentication (e.g., WebAuthn). [1]
What to use instead (migration direction): move interactive user sign-in to the Authorization Code flow and use PKCE (RFC 9700 says authorization servers MUST support PKCE and gives best practices for its secure use, e.g., S256). [2]
Sources:
[1] RFC 9700, Section 2.4 “Resource Owner Password Credentials Grant” https://datatracker.ietf.org/doc/html/rfc9700
[2] RFC 9700 (PKCE requirements / guidance) https://datatracker.ietf.org/doc/html/rfc9700
🌐 Web query:
OAuth 2.1 password grant flow removed spec
💡 Result:
In OAuth 2.1, the “password grant” (formally the Resource Owner Password Credentials (ROPC) grant, i.e., grant_type=password) is removed by being omitted from the spec—it is no longer a defined/standard grant type in OAuth 2.1. The OAuth 2.1 draft explicitly states: “The Resource Owner Password Credentials grant is omitted from this specification”, pointing to the OAuth security BCP as justification. [1]
The security rationale is captured in RFC 9700 (OAuth 2.0 Security Best Current Practice), which says the ROPC grant “MUST NOT be used” because it exposes end-user credentials to the client and increases attack surface. [2]
Where this is specified:
- OAuth 2.1 draft (draft-ietf-oauth-v2-1): omission of ROPC/password grant. [1]
- RFC 9700: ROPC grant MUST NOT be used (Section 2.4). [2]
- OAuth.net’s OAuth 2.1 overview also summarizes that ROPC is omitted. [3]
Sources:
[1] IETF Internet-Draft: draft-ietf-oauth-v2-1-14 (OAuth 2.1 Authorization Framework) (ietf.org)
[2] IETF RFC 9700: Best Current Practice for OAuth 2.0 Security (Section 2.4) (datatracker.ietf.org)
[3] OAuth.net: OAuth 2.1 overview (oauth.net)
Citations:
- 1: https://www.ietf.org/ietf-ftp/internet-drafts/draft-ietf-oauth-v2-1-14.html
- 2: https://datatracker.ietf.org/doc/html/rfc9700
- 3: https://oauth.net/2.1/?utm_source=openai
🌐 Web query:
OAuth 2.0 native apps Authorization Code PKCE 2024 2025
💡 Result:
- Best-practice for native apps: Use the OAuth 2.0 Authorization Code grant + PKCE in an external user-agent (system browser), not an embedded webview. Native/public clients MUST implement PKCE, and servers MUST support it for these clients. Implicit flow is not recommended for native apps. [1]
- Security guidance (updated BCP): The IETF’s “Best Current Practice for OAuth 2.0 Security” was published as RFC 9700 (January 2025), updating OAuth 2.0 security recommendations and deprecating weaker modes of operation. [2]
- Redirect URI considerations (native apps): Native apps use redirect URIs to return the authorization response back to the app (per RFC 8252), commonly via platform mechanisms like claimed HTTPS/universal links, custom schemes, or loopback—depending on platform constraints. [1]
- Provider trend (2024–2025): Major providers continued moving toward PKCE everywhere; e.g., GitHub added PKCE support and recommends PKCE with authorization code flow (and accepts only S256). [3]
- Google-specific (current docs): Google documents PKCE for installed apps and notes custom URI schemes are no longer supported (app-impersonation risk) and that loopback redirect is deprecated for Android/iOS/Chrome app client types (with migration guidance). [4], [5]
Sources: RFC 8252 (Native Apps) [1]; RFC 9700 (OAuth 2.0 Security BCP, Jan 2025) [2]; GitHub changelog (PKCE support, Jul 14 2025) [3]; Google “OAuth 2.0 for iOS & Desktop Apps” [4]; Google loopback migration guide [5].
🏁 Script executed:
cat -n docs/src/guide/development/api-oauth2.md | head -50Repository: authup/authup
Length of output: 2044
Reframe the password grant as legacy/unsuitable for native apps.
Lines 12 presents the password grant as suitable ("most often used") for mobile and desktop applications. This contradicts current OAuth standards: RFC 9700 (Security Best Current Practice, January 2025) explicitly states the password grant "MUST NOT be used" due to credential exposure and incompatibility with modern authentication, and OAuth 2.1 omits it entirely. Native/mobile/desktop applications should use Authorization Code + PKCE instead.
Either mark this flow as legacy/last-resort only with a security warning, or replace this section with an Authorization Code + PKCE example (the documentation mentions PKCE support but provides no Authorization Code + PKCE guidance).
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/development/api-oauth2.md` around lines 8 - 12, Update the
"Password Flow" section: mark the Password Grant Flow as deprecated/legacy and
add a clear security warning referencing RFC 9700 that it MUST NOT be used in
native/mobile/desktop apps; remove the sentence claiming it's "most often used"
for mobile/desktop and instead state it should only be considered as a
last-resort in tightly controlled, legacy server-to-server scenarios. Replace or
supplement the section with guidance recommending the "Authorization Code +
PKCE" flow for native and public clients, and add a short note to link readers
to the existing PKCE support docs and an example for Authorization Code + PKCE.
| ```sh | ||
| npm install @authup/client-web-kit --save-dev | ||
| ``` | ||
|
|
||
| ## Configuration | ||
|
|
||
| Create a file in the plugins folder (e.g. `plugins/authup.ts`) to integrate it into the application. | ||
|
|
||
| ```typescript | ||
| import { APIClient } from '@authup/core'; | ||
| import { install } from '@authup/client-vue'; | ||
| import { createApp } from 'vue' | ||
|
|
||
| const app = createApp({ | ||
| /* root component options */ | ||
| }); | ||
|
|
||
| app.use(install, { | ||
| apiClient: new APIClient({ | ||
| baseURL: 'http://localhost:3010' | ||
| }), | ||
| store: useAuthupStore() | ||
| }); |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Package names declared in the repo =="
fd 'package.json$' | xargs rg -n '"name"\s*:\s*"@authup/(client-web-kit|client-vue|core)"'
echo
echo "== Store symbol references =="
rg -n -C2 '\buseAuthupStore\b'
echo
echo "== Localhost ports referenced in docs =="
rg -n 'localhost:30(00|01|10)' docsRepository: authup/authup
Length of output: 4206
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== All client-related packages in the repo =="
fd 'package.json$' | xargs rg -l '"name"\s*:\s*"@authup/client' | head -20
echo
echo "== Check what `@authup/client-web-kit` exports/imports =="
cat packages/client-web-kit/package.json 2>/dev/null | grep -A 20 '"main"\|"exports"' || echo "Could not read client-web-kit package.json"
echo
echo "== Search for useAuthupStore definition =="
rg -n 'useAuthupStore|export.*useAuthupStore' --type ts --type js
echo
echo "== Check client-web-kit src structure =="
fd -t f '\.ts$|\.js$' packages/client-web-kit/src 2>/dev/null | head -20Repository: authup/authup
Length of output: 1013
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Client-web-kit index source =="
cat packages/client-web-kit/src/index.ts 2>/dev/null || cat packages/client-web-kit/src/index.js 2>/dev/null || echo "File not found"
echo
echo "== Search for store composable anywhere in packages =="
rg -n 'useAuthupStore|useStore' packages/ --type ts --type js | head -20
echo
echo "== Check client-web-nuxt package exports =="
cat packages/client-web-nuxt/package.json 2>/dev/null | grep -A 15 '"main"\|"exports"' || echo "Could not read"
echo
echo "== Check if client-vue package exists =="
fd 'package.json$' | xargs rg -l '"name"\s*:\s*"@authup/client-vue' || echo "No `@authup/client-vue` found"
echo
echo "== Composables in client-web-nuxt =="
fd -t f '\.ts$' packages/client-web-nuxt/src | xargs grep -l 'composable\|useAuth\|useStore' 2>/dev/null | head -10Repository: authup/authup
Length of output: 466
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Composables in client-web-kit =="
cat packages/client-web-kit/src/composables/index.ts 2>/dev/null || cat packages/client-web-kit/src/composables.ts 2>/dev/null || find packages/client-web-kit/src/composables -name '*.ts' 2>/dev/null | head -10
echo
echo "== Search for useAuthupStore in client-web-kit =="
rg -n 'useAuthupStore' packages/client-web-kit/src 2>/dev/null || echo "Not found"
echo
echo "== Check client-vue package =="
find packages -name '*client-vue*' -type d 2>/dev/null || echo "No client-vue directory"
echo
echo "== All packages containing vue =="
fd 'package.json$' | xargs grep -l '"name"\s*:\s*"@authup' | xargs grep '"name"' | grep -i vueRepository: authup/authup
Length of output: 534
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Search for app.use(install pattern in codebase =="
rg -n 'app\.use.*install' --type ts --type js | head -20
echo
echo "== Look for example/test files using client-web-kit =="
find . -path ./node_modules -prune -o -name '*.vue' -o -name 'example*' -o -name 'demo*' | xargs grep -l 'client-web-kit' 2>/dev/null | head -10
echo
echo "== Check what store/composables actually exist =="
find packages/client-web-kit/src -name '*.ts' -type f | xargs basename -a | sort
echo
echo "== Check if useAuthupStore could be from a different package =="
rg -n 'useAuthupStore|export.*Authup.*[Ss]tore' packages/ --type ts --type js | head -20Repository: authup/authup
Length of output: 4045
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Check client-web-kit README or docs for port guidance =="
cat packages/client-web-kit/README.md 2>/dev/null | grep -i 'localhost\|port\|3001\|3010' | head -20 || echo "No README found"
echo
echo "== Check all references to 3010 in SDK docs specifically =="
rg -n 'localhost:3010' docs/src/sdks/ -A 2 -B 2
echo
echo "== Check SDK pages that mention backend port =="
rg -n 'baseURL\|localhost' docs/src/sdks/javascript --type md | grep -E 'index.md|http-middleware' | head -20Repository: authup/authup
Length of output: 1524
Fix the imports and remove the non-existent store reference in the example.
The example imports install from the non-existent package @authup/client-vue; it should import from @authup/client-web-kit. Additionally, useAuthupStore() does not exist in the codebase and should be removed. The baseURL port is also inconsistent with the backend documented elsewhere (use localhost:3001 to match the quick-start guide).
Corrected structure
import { APIClient } from '@authup/core';
import { install } from '@authup/client-web-kit';
import { createApp } from 'vue'
const app = createApp({
/* root component options */
});
app.use(install, {
apiClient: new APIClient({
baseURL: 'http://localhost:3001'
})
});🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/sdks/javascript/client-web-kit/index.md` around lines 11 - 33,
Update the example plugin to import install from '@authup/client-web-kit' (not
'@authup/client-vue'), instantiate APIClient with baseURL
'http://localhost:3001' (instead of :3010), and remove the non-existent
useAuthupStore() reference from the app.use call so app.use(install, {
apiClient: new APIClient({ baseURL: 'http://localhost:3001' }) }) is used; keep
references to install and APIClient to locate the code to change.
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
.agents/.skills/update-docs/SKILL.md (1)
1-74: Well-structured skill definition for documentation maintenance.The 5-step workflow provides clear, actionable guidance for keeping docs in sync with code changes. The dynamic discovery approach (grep/search rather than fixed mapping) is a good pattern for maintainability.
One minor nitpick: Line 72 uses "markdown" — convention typically capitalizes "Markdown" as a proper noun.
,
✏️ Optional: capitalize "Markdown"
-1. All markdown links still resolve (no broken cross-references). +1. All Markdown links still resolve (no broken cross-references).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.agents/.skills/update-docs/SKILL.md around lines 1 - 74, The doc uses a lowercase "markdown" on line containing "All markdown links still resolve" — update that occurrence to "Markdown" to follow proper capitalization; edit the string in SKILL.md where the checklist item reads "All markdown links still resolve (no broken cross-references)" and change "markdown" to "Markdown".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/docs.yml:
- Around line 39-44: Update the Deploy step: fix the publish_dir value to match
the CNAME step by changing publish_dir from "./src/.vitepress/dist" to
"./docs/src/.vitepress/dist" and bump the GitHub Action version used in the
Deploy step from peaceiris/actions-gh-pages@v3 to peaceiris/actions-gh-pages@v4
so the workflow points at the correct output directory and uses the current
action release.
- Around line 26-30: The workflow runs `npm ci` and `npm run build` at the
repository root so the VitePress site in docs/ is never built; update the GitHub
Actions steps that run `npm ci` and `npm run build` to set working-directory:
docs (or add separate steps that run those commands with working-directory:
docs) so the docs/package.json VitePress build is executed; target the steps
currently running `npm ci` and `npm run build` in the workflow to apply this
change.
---
Nitpick comments:
In @.agents/.skills/update-docs/SKILL.md:
- Around line 1-74: The doc uses a lowercase "markdown" on line containing "All
markdown links still resolve" — update that occurrence to "Markdown" to follow
proper capitalization; edit the string in SKILL.md where the checklist item
reads "All markdown links still resolve (no broken cross-references)" and change
"markdown" to "Markdown".
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3913d037-7319-4dd1-bd5d-ca4c4134a0d3
📒 Files selected for processing (2)
.agents/.skills/update-docs/SKILL.md.github/workflows/docs.yml
There was a problem hiding this comment.
Actionable comments posted: 11
♻️ Duplicate comments (3)
docs/src/sdks/javascript/core-http-kit/client.md (1)
1-6:⚠️ Potential issue | 🟡 MinorUse
Clientterminology consistently in the prose.The examples already use
Client, but the surrounding text still refers toAPI Client/API-Client/APIClient/APIClients. Please rename those references so the narrative matches the actual class readers instantiate.Also applies to: 19-22, 44-44
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/core-http-kit/client.md` around lines 1 - 6, Replace all inconsistent references to the client class (strings like "API Client", "API-Client", "APIClient", "APIClients", and "API Client Class") with the canonical term "Client" (use "Client class" where you need the word "class"), and update surrounding prose to read consistently (e.g., "The Client class provides an easy way..." and "To configure the Client, set the `baseURL` parameter on the driver config in the constructor"). Also update the other occurrences noted in the diff (the blocks around the constructor/config examples and any headings) so every mention uses "Client".docs/src/guide/deployment/configuration-server-core.md (1)
101-105:⚠️ Potential issue | 🟠 MajorThese credential examples are still risky and inconsistent.
The warning helps, but the page still gives copy-pasteable
start123/foovalues, and the robot-secret section says the default is generated even thoughapps/server-core/src/app/modules/config/normalize.ts:78currently sets'start123'. Please align the documented default with the implementation and switch these examples to placeholders instead of literal credentials.Also applies to: 127-131, 149-153, 166-170
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/configuration-server-core.md` around lines 101 - 105, The docs currently show literal default credentials (e.g., userAdminPassword: 'start123') that contradict the implementation and encourage copy-paste of unsafe secrets; update the examples in configuration-server-core.md to use placeholders (e.g., '<ADMIN_PASSWORD>' or '<ROBOT_SECRET>') and align the documented default with the actual code in normalize.ts by removing hardcoded values from the docs and referencing the configuration normalization logic (function/constant in apps/server-core/src/app/modules/config/normalize.ts that sets defaults) so the docs no longer claim a generated default while showing a literal one; apply the same placeholder change to the other affected blocks mentioned in the comment (the credential blocks around the second and third ranges) and ensure any text referring to a "generated default" matches the implementation.docs/src/guide/deployment/docker.md (1)
42-46:⚠️ Potential issue | 🟠 MajorAdd the config file mount to match Step 2's instructions.
Line 33 instructs users to mount the config file, but this docker run example omits it. Users following this example will find their file-based configuration ignored at runtime.
📝 Proposed fix to include config mount
docker run \ -v authup:/usr/src/writable \ + -v ./authup.server.core.conf:/usr/src/app/authup.server.core.conf \ -p 3001:3000 \ authup/authup:latest server/core start🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/docker.md` around lines 42 - 46, The docker run example for starting the service omits the config file mount referenced in Step 2; update the docker run command that runs "authup/authup:latest server/core start" to include the config file bind (mount the host config file into the container path used by the app, e.g., the same destination mentioned in Step 2) so the container picks up file-based configuration at runtime; ensure the added mount uses the same config filename/location referenced elsewhere so users' config is not ignored.
🧹 Nitpick comments (1)
docs/src/guide/deployment/docker.md (1)
19-19: Optional: Consider removing the$prompt for cleaner formatting.The markdown linter flags the dollar sign before commands when no output is shown. While this is a common convention, removing it can make the command easier to copy-paste.
✨ Proposed formatting adjustment
-$ mkdir authup && cd authup +mkdir authup && cd authup🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/docker.md` at line 19, Remove the leading shell prompt from the command example so it's plain copy-pasteable: edit the line containing "mkdir authup && cd authup" in docs/src/guide/deployment/docker.md and delete the leading "$ " so the file shows "mkdir authup && cd authup" without the dollar prompt.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/docs.yml:
- Around line 18-30: The workflow currently grants contents: write for the build
job and runs untrusted PR code with that token; change the current job (the job
with permissions: contents and steps including actions/checkout, setup-node,
Install, Build) to use permissions: contents: read and only perform build/test
(npm ci and npm run build -w docs) for pull_request events, then create a second
deploy job that requires contents: write and is triggered only on protected
branch pushes (e.g., push to main) to perform deployment steps; ensure the
deploy job depends on the build artifact (or re-runs build in a controlled
context) and that only the deploy job uses the write-capable GITHUB_TOKEN.
- Around line 7-13: Add the workflow file itself to the paths filter so edits to
.github/workflows/docs.yml trigger the workflow on pushes and PRs; update the
paths arrays under both push and pull_request (the existing "paths:" entries) to
include '.github/workflows/docs.yml' in addition to 'docs/**' so modifications
to this workflow file will run the workflow for validation.
In `@docs/src/guide/contributing/database-entities.md`:
- Line 73: The example is missing the JoinColumn import causing a
ReferenceError; update the TypeORM import statement to include the JoinColumn
symbol so the `@JoinColumn` decorator used in the entity (the decorator name
JoinColumn and the entity using ManyToOne/JoinColumn) is defined—add JoinColumn
to the existing import list (alongside Column, Entity, ManyToOne,
PrimaryGeneratedColumn) so the decorator resolves.
In `@docs/src/guide/contributing/middlewares.md`:
- Line 29: The sentence in docs/src/guide/contributing/middlewares.md currently
reads "errors thrown handlers" — update that phrase to "errors thrown by
handlers" so the warning reads "...to handle errors thrown by handlers
(controllers & middlewares) of the request chain." Edit the document text where
that sentence appears to insert the missing word "by" and ensure
spacing/punctuation remains correct.
- Line 9: The example imports the unused symbol "path" via the line 'import path
from "path";' which should be removed; locate the import statement that declares
the path module and delete it (and run the linter/formatter to ensure no
leftover references), leaving only the imports actually used in the middleware
documentation example.
In `@docs/src/guide/contributing/shared-hash.md`:
- Around line 14-17: Update the top-level import that currently pulls compare
and hash from "@authup/server-utils" to instead import those utilities from
"@authup/server-kit" (i.e., change the module specifier for the existing import
of compare and hash).
- Around line 32-35: The TypeScript declaration for the hash function uses the
wrong first parameter name; update the declaration for function hash to use the
actual implementation parameter name "str" (i.e., change the first parameter
from value to str) inside docs/src/guide/contributing/shared-hash.md and then
search the same document for any other occurrences of the old parameter name to
update them so examples, typings, and doc references match the implementation's
symbol hash(str: string, rounds?: number): Promise<string>.
In `@docs/src/guide/deployment/configuration-server-core.md`:
- Around line 46-51: The docs list config keys authorizeRedirectUrl,
userAdminName, and robotAdminName that are not present in the config type
surface; either remove these keys from the guide (including the
authup.server.core.ts example and the .conf/.env blocks) or add them to the
actual config API by declaring them in the config types (types.ts) and wiring
them into the server-core config loader. Specifically update or remove the
entries for authorizeRedirectUrl, userAdminName, and robotAdminName so the
documentation and the sample authup.server.core.ts match the actual config types
(types.ts) and ensure the example .conf/.env blocks are consistent with the
chosen approach.
- Around line 55-59: Update the documented default refresh-token value in the
config example: change tokenRefreshMaxAge from 259_000 to 259_200 so the comment
and example match the actual default used in normalize.ts (see
tokenRefreshMaxAge and the prose "259,200s / 3 days"); ensure both the inline
comment and the numeric literal in the example are updated to 259_200.
In `@docs/src/guide/deployment/docker.md`:
- Line 57: Replace the typo in the sentence "This will lunch the following
application with default settings:" by changing "lunch" to "launch" so the line
reads "This will launch the following application with default settings:";
locate the exact text in docs/src/guide/deployment/docker.md and update it
accordingly.
In `@docs/src/sdks/javascript/core-http-kit/token-creator.md`:
- Around line 10-58: Update the docs to use the real helper exports and fix the
syntax error: replace createTokenCreator with createUserTokenCreator in the User
example (and add the missing comma after password), replace createTokenCreator
with createRobotTokenCreator in the Robot example, and either change the
RobotInVault section to use createClientTokenCreator or remove that section if
unsupported; ensure import statements reference createUserTokenCreator,
createRobotTokenCreator, and/or createClientTokenCreator from
'@authup/core-http-kit' so examples match the actual API.
---
Duplicate comments:
In `@docs/src/guide/deployment/configuration-server-core.md`:
- Around line 101-105: The docs currently show literal default credentials
(e.g., userAdminPassword: 'start123') that contradict the implementation and
encourage copy-paste of unsafe secrets; update the examples in
configuration-server-core.md to use placeholders (e.g., '<ADMIN_PASSWORD>' or
'<ROBOT_SECRET>') and align the documented default with the actual code in
normalize.ts by removing hardcoded values from the docs and referencing the
configuration normalization logic (function/constant in
apps/server-core/src/app/modules/config/normalize.ts that sets defaults) so the
docs no longer claim a generated default while showing a literal one; apply the
same placeholder change to the other affected blocks mentioned in the comment
(the credential blocks around the second and third ranges) and ensure any text
referring to a "generated default" matches the implementation.
In `@docs/src/guide/deployment/docker.md`:
- Around line 42-46: The docker run example for starting the service omits the
config file mount referenced in Step 2; update the docker run command that runs
"authup/authup:latest server/core start" to include the config file bind (mount
the host config file into the container path used by the app, e.g., the same
destination mentioned in Step 2) so the container picks up file-based
configuration at runtime; ensure the added mount uses the same config
filename/location referenced elsewhere so users' config is not ignored.
In `@docs/src/sdks/javascript/core-http-kit/client.md`:
- Around line 1-6: Replace all inconsistent references to the client class
(strings like "API Client", "API-Client", "APIClient", "APIClients", and "API
Client Class") with the canonical term "Client" (use "Client class" where you
need the word "class"), and update surrounding prose to read consistently (e.g.,
"The Client class provides an easy way..." and "To configure the Client, set the
`baseURL` parameter on the driver config in the constructor"). Also update the
other occurrences noted in the diff (the blocks around the constructor/config
examples and any headings) so every mention uses "Client".
---
Nitpick comments:
In `@docs/src/guide/deployment/docker.md`:
- Line 19: Remove the leading shell prompt from the command example so it's
plain copy-pasteable: edit the line containing "mkdir authup && cd authup" in
docs/src/guide/deployment/docker.md and delete the leading "$ " so the file
shows "mkdir authup && cd authup" without the dollar prompt.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e746d8f6-ef9a-4f4e-8292-fdc912b1e500
📒 Files selected for processing (12)
.github/workflows/docs.ymldocs/package.jsondocs/src/getting-started/guides.mddocs/src/guide/contributing/database-entities.mddocs/src/guide/contributing/database-seeds.mddocs/src/guide/contributing/middlewares.mddocs/src/guide/contributing/shared-hash.mddocs/src/guide/deployment/configuration-server-core.mddocs/src/guide/deployment/docker.mddocs/src/sdks/javascript/client-web-kit/index.mddocs/src/sdks/javascript/core-http-kit/client.mddocs/src/sdks/javascript/core-http-kit/token-creator.md
🚧 Files skipped from review as they are similar to previous changes (4)
- docs/src/guide/contributing/database-seeds.md
- docs/src/getting-started/guides.md
- docs/src/sdks/javascript/client-web-kit/index.md
- docs/package.json
| ```typescript | ||
| import { User } from '@authup/core'; | ||
| import { UserEntity } from '@authup/server-database'; | ||
| import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; |
There was a problem hiding this comment.
Missing JoinColumn import causes reference error.
The code example uses the @JoinColumn decorator on line 84, but JoinColumn is not included in the import statement. This will cause a ReferenceError when users try to use this code.
🐛 Proposed fix
-import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
+import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; | |
| import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/contributing/database-entities.md` at line 73, The example is
missing the JoinColumn import causing a ReferenceError; update the TypeORM
import statement to include the JoinColumn symbol so the `@JoinColumn` decorator
used in the entity (the decorator name JoinColumn and the entity using
ManyToOne/JoinColumn) is defined—add JoinColumn to the existing import list
(alongside Column, Entity, ManyToOne, PrimaryGeneratedColumn) so the decorator
resolves.
|
|
||
| ::: warning Important | ||
| It is not mandatory to use the provided error middleware, but it | ||
| is required to define one, to handle errors thrown handlers (controllers & middlewares) of the request chain. |
There was a problem hiding this comment.
Fix grammatical error in warning message.
The phrase "errors thrown handlers" is missing the word "by" between "thrown" and "handlers."
📝 Proposed fix
-is required to define one, to handle errors thrown handlers (controllers & middlewares) of the request chain.
+is required to define one, to handle errors thrown by handlers (controllers & middlewares) of the request chain.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| is required to define one, to handle errors thrown handlers (controllers & middlewares) of the request chain. | |
| is required to define one, to handle errors thrown by handlers (controllers & middlewares) of the request chain. |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/contributing/middlewares.md` at line 29, The sentence in
docs/src/guide/contributing/middlewares.md currently reads "errors thrown
handlers" — update that phrase to "errors thrown by handlers" so the warning
reads "...to handle errors thrown by handlers (controllers & middlewares) of the
request chain." Edit the document text where that sentence appears to insert the
missing word "by" and ensure spacing/punctuation remains correct.
| **Type** | ||
| ```ts | ||
| declare async function hash(value: string, rounds?: number) : Promise<string>; | ||
| ``` |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify the hash function signature
# Find the hash function implementation
ast-grep --pattern 'export async function hash($PARAM, $$$) { $$$ }'
# Alternative: use rg to find the function signature
rg -n -A 2 'export async function hash' --type ts -g 'packages/*/src/crypto/hash/hash.ts'Repository: authup/authup
Length of output: 316
🏁 Script executed:
cd docs && sed -n '30,40p' src/guide/contributing/shared-hash.md | cat -nRepository: authup/authup
Length of output: 344
Fix parameter name to match actual implementation.
The documented parameter name value doesn't match the actual implementation, which uses str as the first parameter name. Documentation should accurately reflect the implementation's parameter names for consistency with error messages, stack traces, and IDE hints.
📝 Proposed fix to match implementation
**Type**
```ts
-declare async function hash(value: string, rounds?: number) : Promise<string>;
+declare async function hash(str: string, rounds?: number) : Promise<string>;
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against the current code and only fix it if needed.
In @docs/src/guide/contributing/shared-hash.md around lines 32 - 35, The
TypeScript declaration for the hash function uses the wrong first parameter
name; update the declaration for function hash to use the actual implementation
parameter name "str" (i.e., change the first parameter from value to str) inside
docs/src/guide/contributing/shared-hash.md and then search the same document for
any other occurrences of the old parameter name to update them so examples,
typings, and doc references match the implementation's symbol hash(str: string,
rounds?: number): Promise.
</details>
<!-- fingerprinting:phantom:triton:puma -->
<!-- This is an auto-generated comment by CodeRabbit -->
There was a problem hiding this comment.
Actionable comments posted: 14
🧹 Nitpick comments (3)
docs/src/guide/contributing/middlewares.md (1)
1-5: Consider expanding this documentation for contributor guidance.The current content only states the location and package status of middlewares. While accurate, contributors would benefit from additional context such as:
- A brief explanation of what middlewares are and their role in the architecture
- How to create or modify a middleware
- How middlewares are registered in the application
- Examples of existing middlewares they can reference
- Any relevant best practices or conventions
This would make the guide more actionable for developers working on the server-core.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/contributing/middlewares.md` around lines 1 - 5, Expand the "Middlewares" guide by adding: (1) a short definition of what middleware is and its role in the server-core architecture; (2) steps to create or modify a middleware in apps/server-core/src/adapters/http/, including required exports and expected function signature (mention the middleware entry point used by the app); (3) instructions on how middlewares are registered with the server (describe the registration hook or function name used by the server-core bootstrap/registry); (4) one or two concrete examples referencing existing middleware files in apps/server-core/src/adapters/http/ as templates; and (5) a brief list of best practices/conventions (naming, error handling, async behavior, and testing tips) for contributors to follow.docs/src/sdks/javascript/core-http-kit/interceptor.md (1)
5-5: Add hyphen to compound adjective.The phrase "hapic based HTTP clients" should be hyphenated as "hapic-based HTTP clients" since it's a compound adjective preceding a noun.
📝 Suggested grammar fix
-[hapic](https://github.com/tada5hi/hapic) based HTTP clients. +[hapic](https://github.com/tada5hi/hapic)-based HTTP clients.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/core-http-kit/interceptor.md` at line 5, Update the phrase "hapic based HTTP clients" to use a hyphenated compound adjective: change it to "hapic-based HTTP clients" so the compound adjective preceding the noun is grammatically correct; locate and replace the exact text "hapic based HTTP clients" in the interceptor.md content.docs/src/sdks/javascript/client-web-kit/collections.md (1)
135-264: Either document all supported slots or label this as a partial list.
packages/client-web-kit/src/components/utility/entity/collection/types.ts:86-96exposes additional slots (default,item,item-actions,item-actions-extra) that are not mentioned here. If this section is meant to be exhaustive, it is incomplete; otherwise, rename it to something like “Common slots” to avoid implying full coverage.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 135 - 264, The slots documentation currently lists several slots for AUsers but omits others declared in types.ts (notably "default", "item", "item-actions", and "item-actions-extra"), so either add those missing slot examples and descriptions (matching the naming and prop signatures from packages/client-web-kit/src/components/utility/entity/collection/types.ts) or change the section title to indicate a partial list (e.g., "Common slots") and add a short note that additional slots exist in types.ts; update the AUsers examples to include at least one snippet demonstrating each of the missing slots or adjust the heading and add the pointer to types.ts.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/src/guide/contributing/shared-key-pair.md`:
- Line 55: The inline repo path "See `packages/server-kit/src/crypto/key/` for
the full API." is not navigable on the docs site—replace that sentence with a
clickable reference to the public API/source/docs (for example a link to the
public GitHub source file, the generated API reference, or a dedicated docs
page) so readers can open the key API directly; update the markdown to use a
proper link label (e.g., "See the server-kit key API" linked to the public URL)
and ensure the link points to the canonical public location for the key API.
- Around line 13-17: The ambient declaration for createAsymmetricKeyPair uses
invalid syntax ("declare async function"); remove the "async" keyword and
declare it as a regular ambient function that returns a Promise (keep the
Promise<CryptoKeyPair> return type) so the function signature becomes a valid
TypeScript ambient declaration for createAsymmetricKeyPair with
AsymmetricKeyPairCreateOptionsInput as the parameter.
In `@docs/src/sdks/javascript/access/api-reference.md`:
- Around line 45-58: The docs currently show an interface named IPolicyData but
the section heading and earlier references use PolicyData; update the docs so
names are consistent: either rename the heading and any mentions to IPolicyData
to match the interface, or replace the interface snippet with the exported
PolicyData class signature that implements IPolicyData (include constructor,
public methods set, has, get, isValidated, setValidated, clone and any static
exports) so callers know which symbol to import; ensure all occurrences of
PolicyData/IPolicyData in the surrounding text match the chosen exported symbol
(PolicyData or IPolicyData).
- Around line 64-72: The table entry for `attributeNames` is incorrect: the
evaluator consumes attributes via the `attributes` field of `PolicyData`, not
`attributeNames`; update the table so the `attributeNames` row either points to
`attributes` (or remove the `attributeNames` row) and ensure consistency with
`PolicyData` and the docs that reference `attributes` (see symbols
`attributeNames`, `attributes`, and `PolicyData`), so readers are directed to
the correct key used by the permission evaluator.
In `@docs/src/sdks/javascript/access/permission-checker.md`:
- Around line 39-40: The documentation link text references
PermissionCheckerCheckContext but the fragment points to
`#permissioncheckercheckoptions`; update the anchor so the link targets the
correct API doc (change the fragment to `#permissioncheckercheckcontext`) or
rename the link text to match the existing fragment; locate the README line that
mentions the check method and PermissionCheckerCheckContext and ensure the
markdown link and fragment are consistent with the api-reference header name.
- Around line 42-70: The snippet calls the async PermissionChecker.check()
without awaiting and uses an empty PermissionMemoryRepository so
permissions/policies are missing; update the example to await each
checker.check(...) call and initialize PermissionMemoryRepository with
Permission entries for "user_create" and "user_update" (and an associated policy
that restricts allowed attributes for "user_update") so the checks resolve and
reflect success/failure as shown; reference the PermissionChecker,
PermissionMemoryRepository, PolicyData, and the check() method when making these
changes.
In `@docs/src/sdks/javascript/access/policies.md`:
- Around line 20-25: The docs' TypeScript example for AttributesPolicy is
invalid because AttributesPolicyQuery<T> references T but AttributesPolicy is
not declared generic; update the snippet to match the source by declaring
AttributesPolicy as generic (e.g., AttributesPolicy<T extends Record<string,
any> = Record<string, any>>) or replace AttributesPolicyQuery<T> with a concrete
non-generic type so the example compiles; ensure the symbol names
AttributesPolicy and AttributesPolicyQuery<T> are used exactly as in the source.
- Around line 258-260: The example sets a date string for the time input which
conflicts with the surrounding time-of-day policy; update the PolicyData usage
(the data.set call on the PolicyData instance, e.g., data.set('time', ...)) to
use a time-of-day string like "12:00:00" instead of "2024-04-15" so the example
matches the documented 08:00:00–16:00:00 policy.
- Around line 27-52: The evaluator examples call evaluate() which returns a
Promise but the code examples (Attributes using AttributesPolicyEvaluator and
PolicyData with definePolicyEvaluationContext, plus the AttributeNames, Date,
and Time examples) don't handle the async result; update each example to await
the call (or use .then()) and capture/handle the resolved value (e.g., const
result = await evaluator.evaluate(...)) so the Promise is properly handled in
AttributesPolicyEvaluator.evaluate, AttributeNamesPolicyEvaluator.evaluate,
DatePolicyEvaluator.evaluate, and TimePolicyEvaluator.evaluate examples.
In `@docs/src/sdks/javascript/client-web-kit/collections.md`:
- Around line 41-46: The example uses <ListHeader> in the template but never
imports or registers it while importing ATitle (unused); fix by either replacing
<ListHeader> with <ATitle> (and remove ATitle from unused imports accordingly)
or add ListHeader to the imports and component registration (e.g., import {
ASearch, ATitle, APagination, AUsers, ListHeader } from '@authup/client-web-kit'
and include ListHeader in the components object alongside
ASearch/APagination/AUsers/ATitle) so the snippet compiles as shown.
- Around line 130-132: The rapiq link in the tip block currently points to the
GitHub user profile; update that markdown link (the "rapiq" link inside the tip
block in collections.md) to the rapiq project or its docs page URL (e.g., the
rapiq repository README or docs URL) so readers land on the query-parameter
documentation rather than the user profile.
- Around line 103-119: Update the docs to describe the full prop contract for
header, footer, noMore, and loading (they are not simple booleans but accept
boolean | options object) and list the available option fields exposed by the
helper: realmId, loadOnSetup, and body; reflect that passing true/false toggles
behavior while passing an object lets callers customize via these fields, and
ensure examples and prop descriptions reference the helper names (header,
footer, noMore, loading) and include at least one example of both boolean and
object usage.
In `@docs/src/sdks/javascript/client-web-kit/forms.md`:
- Around line 16-17: Update the docs text to remove the claim that form
components expose the full entity-component prop surface and instead state the
actual prop-parity: forms expose a narrowed set (e.g., entity, realmId,
canManage as used by AUserForm) rather than the full set returned by
defineEntityVProps; mention that entity components (e.g., AUser) use
defineEntityVProps which includes additional props like entityId, queryFilters,
queryFields, and query so readers don't assume those are available on form
components.
In `@docs/src/sdks/javascript/core-kit/api-reference.md`:
- Around line 297-300: The intra-page links point to the non-existent anchor
"#policy" in the references list ("Client", "Policy", "Realm"); fix this by
either adding a corresponding "## Policy" section to this page (so the "#policy"
anchor resolves) or update both reference list entries that currently target
"#policy" to point to the actual policy reference page/anchor used in the docs
site (replace the "#policy" hrefs with the correct policy page URL/anchor).
Ensure you update both occurrences mentioned (the list around the
Client/Policy/Realm block and the similar block later in the file) so no dead
intra-page links remain.
---
Nitpick comments:
In `@docs/src/guide/contributing/middlewares.md`:
- Around line 1-5: Expand the "Middlewares" guide by adding: (1) a short
definition of what middleware is and its role in the server-core architecture;
(2) steps to create or modify a middleware in
apps/server-core/src/adapters/http/, including required exports and expected
function signature (mention the middleware entry point used by the app); (3)
instructions on how middlewares are registered with the server (describe the
registration hook or function name used by the server-core bootstrap/registry);
(4) one or two concrete examples referencing existing middleware files in
apps/server-core/src/adapters/http/ as templates; and (5) a brief list of best
practices/conventions (naming, error handling, async behavior, and testing tips)
for contributors to follow.
In `@docs/src/sdks/javascript/client-web-kit/collections.md`:
- Around line 135-264: The slots documentation currently lists several slots for
AUsers but omits others declared in types.ts (notably "default", "item",
"item-actions", and "item-actions-extra"), so either add those missing slot
examples and descriptions (matching the naming and prop signatures from
packages/client-web-kit/src/components/utility/entity/collection/types.ts) or
change the section title to indicate a partial list (e.g., "Common slots") and
add a short note that additional slots exist in types.ts; update the AUsers
examples to include at least one snippet demonstrating each of the missing slots
or adjust the heading and add the pointer to types.ts.
In `@docs/src/sdks/javascript/core-http-kit/interceptor.md`:
- Line 5: Update the phrase "hapic based HTTP clients" to use a hyphenated
compound adjective: change it to "hapic-based HTTP clients" so the compound
adjective preceding the noun is grammatically correct; locate and replace the
exact text "hapic based HTTP clients" in the interceptor.md content.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 661c113f-94e5-4f10-9b88-0271813d1480
📒 Files selected for processing (25)
docs/src/guide/contributing/controllers.mddocs/src/guide/contributing/database-entities.mddocs/src/guide/contributing/database-installation.mddocs/src/guide/contributing/database-oauth2.mddocs/src/guide/contributing/database-seeds.mddocs/src/guide/contributing/database-subscribers.mddocs/src/guide/contributing/middlewares.mddocs/src/guide/contributing/shared-hash.mddocs/src/guide/contributing/shared-installation.mddocs/src/guide/contributing/shared-key-pair.mddocs/src/guide/contributing/shared-sign-verify.mddocs/src/sdks/javascript/access/api-reference.mddocs/src/sdks/javascript/access/permission-checker.mddocs/src/sdks/javascript/access/policies.mddocs/src/sdks/javascript/client-web-kit/collections.mddocs/src/sdks/javascript/client-web-kit/forms.mddocs/src/sdks/javascript/client-web-kit/records.mddocs/src/sdks/javascript/client-web-nuxt/index.mddocs/src/sdks/javascript/core-http-kit/client.mddocs/src/sdks/javascript/core-http-kit/index.mddocs/src/sdks/javascript/core-http-kit/interceptor.mddocs/src/sdks/javascript/core-http-kit/token-creator.mddocs/src/sdks/javascript/core-http-kit/token-verifier.mddocs/src/sdks/javascript/core-kit/api-reference.mdpackages/client-web-nuxt/src/runtime/types.ts
✅ Files skipped from review due to trivial changes (4)
- docs/src/guide/contributing/database-oauth2.md
- docs/src/sdks/javascript/core-http-kit/token-creator.md
- docs/src/guide/contributing/database-seeds.md
- docs/src/guide/contributing/shared-hash.md
🚧 Files skipped from review as they are similar to previous changes (10)
- docs/src/guide/contributing/database-installation.md
- docs/src/guide/contributing/shared-sign-verify.md
- docs/src/guide/contributing/database-entities.md
- docs/src/guide/contributing/database-subscribers.md
- docs/src/sdks/javascript/core-http-kit/token-verifier.md
- docs/src/sdks/javascript/client-web-kit/records.md
- docs/src/guide/contributing/controllers.md
- docs/src/guide/contributing/shared-installation.md
- docs/src/sdks/javascript/client-web-nuxt/index.md
- docs/src/sdks/javascript/core-http-kit/index.md
| const pem = await key.toPem(); | ||
| ``` | ||
|
|
||
| See `packages/server-kit/src/crypto/key/` for the full API. |
There was a problem hiding this comment.
Replace the repo-internal path with a navigable reference.
packages/server-kit/src/crypto/key/ only makes sense to repository contributors and is not clickable/useful in the rendered docs site. Prefer linking to the public source file, API reference, or a dedicated docs page instead.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/contributing/shared-key-pair.md` at line 55, The inline repo
path "See `packages/server-kit/src/crypto/key/` for the full API." is not
navigable on the docs site—replace that sentence with a clickable reference to
the public API/source/docs (for example a link to the public GitHub source file,
the generated API reference, or a dedicated docs page) so readers can open the
key API directly; update the markdown to use a proper link label (e.g., "See the
server-kit key API" linked to the public URL) and ensure the link points to the
canonical public location for the key API.
| ## `PolicyData` | ||
|
|
||
| **Type** | ||
| ```typescript | ||
| export interface IPolicyData { | ||
| set(key: string, value: unknown) : void; | ||
| has(key: string): boolean; | ||
| get<T = unknown>(key: string) : T; | ||
|
|
||
| isValidated(key: string): boolean; | ||
| setValidated(key: string) : void; | ||
|
|
||
| clone() : IPolicyData | ||
| } |
There was a problem hiding this comment.
Align this section with the exported symbol name.
The heading and earlier references call this type PolicyData, but the snippet documents IPolicyData. That makes the API reference self-contradictory next to input?: PolicyData above and leaves readers unclear whether they should import the class or the interface. Either rename the section to IPolicyData or show the PolicyData class signature implementing it.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/sdks/javascript/access/api-reference.md` around lines 45 - 58, The
docs currently show an interface named IPolicyData but the section heading and
earlier references use PolicyData; update the docs so names are consistent:
either rename the heading and any mentions to IPolicyData to match the
interface, or replace the interface snippet with the exported PolicyData class
signature that implements IPolicyData (include constructor, public methods set,
has, get, isValidated, setValidated, clone and any static exports) so callers
know which symbol to import; ensure all occurrences of PolicyData/IPolicyData in
the surrounding text match the chosen exported symbol (PolicyData or
IPolicyData).
| ## Props | ||
|
|
||
| **`header`** | ||
|
|
||
| Disable the header section. | ||
|
|
||
| **`footer`** | ||
|
|
||
| Disable the footer section. | ||
|
|
||
| **`noMore`** | ||
|
|
||
| Disable the no more items section. | ||
|
|
||
| **`loading`** | ||
|
|
||
| Disable the loading section. |
There was a problem hiding this comment.
Document the actual prop contract, not just the boolean shorthand.
This section currently implies header, footer, noMore, and loading are simple on/off flags, but packages/client-web-kit/src/components/utility/entity/collection/helpers.ts:15-55 defines each of them as boolean | options object. That helper also exposes realmId, loadOnSetup, and body, which are missing here. The current docs under-describe the public API.
Suggested direction
**`header`**
-Disable the header section.
+Set to `false` to disable the header section, or pass an options object to customize it.
**`footer`**
-Disable the footer section.
+Set to `false` to disable the footer section, or pass an options object to customize it.
**`noMore`**
-Disable the no more items section.
+Set to `false` to disable the "no more items" section, or pass an options object to customize it.
**`loading`**
-Disable the loading section.
+Set to `false` to disable the loading section, or pass an options object to customize it.
+
+**`realmId`**
+
+Restrict collection loading to a specific realm.
+
+**`loadOnSetup`**
+
+Control whether the initial fetch runs during component setup.
+
+**`body`**
+
+Customize body rendering options.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ## Props | |
| **`header`** | |
| Disable the header section. | |
| **`footer`** | |
| Disable the footer section. | |
| **`noMore`** | |
| Disable the no more items section. | |
| **`loading`** | |
| Disable the loading section. | |
| ## Props | |
| **`header`** | |
| Set to `false` to disable the header section, or pass an options object to customize it. | |
| **`footer`** | |
| Set to `false` to disable the footer section, or pass an options object to customize it. | |
| **`noMore`** | |
| Set to `false` to disable the "no more items" section, or pass an options object to customize it. | |
| **`loading`** | |
| Set to `false` to disable the loading section, or pass an options object to customize it. | |
| **`realmId`** | |
| Restrict collection loading to a specific realm. | |
| **`loadOnSetup`** | |
| Control whether the initial fetch runs during component setup. | |
| **`body`** | |
| Customize body rendering options. |
🧰 Tools
🪛 LanguageTool
[style] ~114-~114: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...able the footer section. noMore Disable the no more items section. **loading...
(ENGLISH_WORD_REPEAT_BEGINNING_RULE)
[style] ~118-~118: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... no more items section. loading Disable the loading section. query The ...
(ENGLISH_WORD_REPEAT_BEGINNING_RULE)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 103 -
119, Update the docs to describe the full prop contract for header, footer,
noMore, and loading (they are not simple booleans but accept boolean | options
object) and list the available option fields exposed by the helper: realmId,
loadOnSetup, and body; reflect that passing true/false toggles behavior while
passing an object lets callers customize via these fields, and ensure examples
and prop descriptions reference the helper names (header, footer, noMore,
loading) and include at least one example of both boolean and object usage.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 4
♻️ Duplicate comments (3)
docs/src/sdks/javascript/access/api-reference.md (1)
45-58:⚠️ Potential issue | 🟡 MinorDocument
PolicyDataandIPolicyDataconsistently.The heading and earlier examples refer to the exported
PolicyDatasymbol, but this snippet documentsIPolicyDatainstead. That still leaves readers unclear about what they should import from@authup/access. Either rename this section toIPolicyDataor replace the snippet with thePolicyDataclass signature that implements it.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/access/api-reference.md` around lines 45 - 58, The docs currently mix PolicyData and IPolicyData; make them consistent by either renaming the section heading to IPolicyData and ensuring examples/imports reference IPolicyData, or replace the documented snippet with the exported PolicyData class signature (showing it implements IPolicyData) so readers know what to import from `@authup/access`; update example usages and any preceding text to reference the same symbol (PolicyData or IPolicyData) and ensure the export name matches the package API.docs/src/guide/deployment/configuration-server-core.md (1)
88-112:⚠️ Potential issue | 🟠 MajorReplace hard-coded example secrets with placeholders.
This still ships copy-pastable credentials (
start123) in all three config formats. In deployment docs that is too easy to cargo-cult into real installs; use placeholders such as<ADMIN_PASSWORD>/<ROBOT_SECRET>or explicitly tell readers to omit the key when relying on generated secrets.Suggested doc fix
- userAdminPassword: 'start123', + userAdminPassword: '<ADMIN_PASSWORD>', ... - robotAdminSecret: 'start123', + robotAdminSecret: '<ROBOT_SECRET>', ... -userAdminPassword=start123 +userAdminPassword=<ADMIN_PASSWORD> ... -robotAdminSecret=start123 +robotAdminSecret=<ROBOT_SECRET> ... -USER_ADMIN_PASSWORD=start123 +USER_ADMIN_PASSWORD=<ADMIN_PASSWORD> ... -ROBOT_ADMIN_SECRET=start123 +ROBOT_ADMIN_SECRET=<ROBOT_SECRET>Also applies to: 122-132, 136-146
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/configuration-server-core.md` around lines 88 - 112, The documentation ships copy-pastable secrets; replace hard-coded values by changing the example config entries userAdminPassword and robotAdminSecret to placeholder tokens (e.g. "<ADMIN_PASSWORD>" and "<ROBOT_SECRET>") or indicate the key should be omitted when relying on generated secrets, and keep the flags userAdminPasswordReset and robotAdminEnabled as-is; update all mirrored examples (including the other blocks flagged around lines 122-132 and 136-146) so no real credentials like "start123" appear in any example.docs/src/sdks/javascript/client-web-kit/collections.md (1)
105-123:⚠️ Potential issue | 🟠 MajorDocument the full collection prop contract.
These entries still describe
header,footer,noMore, andloadingas simple disable flags, butpackages/client-web-kit/src/components/utility/entity/collection/utils/component.ts:25-61defines each asboolean | options objectand also exposesrealmId,loadOnSetup, andbody. As written, the docs under-describe the public API.Proposed doc update
**`header`** -Disable the header section. +Set to `false` to disable the header section, or pass an options object to customize it. **`footer`** -Disable the footer section. +Set to `false` to disable the footer section, or pass an options object to customize it. **`noMore`** -Disable the no more items section. +Set to `false` to disable the "no more items" section, or pass an options object to customize it. **`loading`** -Disable the loading section. +Set to `false` to disable the loading section, or pass an options object to customize it. + +**`realmId`** + +Restrict collection loading to a specific realm. + +**`loadOnSetup`** + +Control whether the initial fetch runs during component setup. + +**`body`** + +Customize body rendering options.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 105 - 123, The docs currently list header, footer, noMore, and loading as simple booleans but the actual component contract (see component.ts) defines them as boolean | options object and also supports the option fields realmId, loadOnSetup, and body; update the Collection props docs to describe each of header/footer/noMore/loading as accepting either a boolean or an options object and enumerate the object fields (realmId, loadOnSetup, body) and their types/semantics, and also expand the query section to document its full parameter set to match the runtime shape exported by the component utilities.
🧹 Nitpick comments (1)
docs/src/guide/deployment/docker.md (1)
19-19: Consider removing the$prompt prefix for consistency.The
$prefix in shell commands is flagged by markdownlint (MD014). While showing prompts is a common documentation practice, the linter prefers either removing the prefix or showing command output for consistency.📝 Proposed adjustment
-$ mkdir authup && cd authup +mkdir authup && cd authup🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/src/guide/deployment/docker.md` at line 19, Remove the leading shell prompt from the command string "$ mkdir authup && cd authup" so it reads "mkdir authup && cd authup" to satisfy markdownlint MD014; update the same style elsewhere in this document if any other commands include a "$" prefix to keep examples consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/src/guide/deployment/configuration-server-core.md`:
- Around line 41-44: The docs example exposes cookieDomain as a regular config
key even though apps/server-core/src/app/modules/config/types.ts marks
cookieDomain as `@deprecated`; update this docs snippet to either remove
cookieDomain from the example or explicitly mark it as deprecated in the docs
(e.g., add "(deprecated)" or a deprecation note next to cookieDomain) and
reference the types.ts deprecation so readers are guided to avoid using
cookieDomain for new deployments. Ensure the example and any surrounding text
consistently reflect that cookieDomain is deprecated.
- Around line 29-33: The docs incorrectly state the default host as 'localhost';
update the documentation block in configuration-server-core.md to reflect the
actual default used in apps/server-core/src/app/modules/config/normalize.ts
(host default '0.0.0.0') and adjust the example value and description to
indicate it binds on all interfaces by default rather than only localhost,
referencing the host property shown in the docs.
In `@docs/src/guide/deployment/docker.md`:
- Around line 42-46: The docker run snippet mounts the volume to
/usr/src/writable which doesn't match the Dockerfile's WRITABLE_DIRECTORY_PATH
(/usr/src/app/writable), so persistence will fail; update the docker run command
in the docs to mount the volume at /usr/src/app/writable (i.e., change the -v
target path) so it lines up with WRITABLE_DIRECTORY_PATH and ensures DB files,
logs and uploads persist.
In `@docs/src/sdks/javascript/client-web-kit/collections.md`:
- Around line 235-260: The docs show nonexistent slot props for the AUsers
component's loading and no-more slots; update the examples to remove the
slot-binding (change `<template `#loading`="props">` and `<template
`#no-more`="props">` to `<template `#loading`>` and `<template `#no-more`>`
respectively) so they match the actual slot typings (see AUsers and the slot
types in collection/types.ts where both slots are typed as undefined).
---
Duplicate comments:
In `@docs/src/guide/deployment/configuration-server-core.md`:
- Around line 88-112: The documentation ships copy-pastable secrets; replace
hard-coded values by changing the example config entries userAdminPassword and
robotAdminSecret to placeholder tokens (e.g. "<ADMIN_PASSWORD>" and
"<ROBOT_SECRET>") or indicate the key should be omitted when relying on
generated secrets, and keep the flags userAdminPasswordReset and
robotAdminEnabled as-is; update all mirrored examples (including the other
blocks flagged around lines 122-132 and 136-146) so no real credentials like
"start123" appear in any example.
In `@docs/src/sdks/javascript/access/api-reference.md`:
- Around line 45-58: The docs currently mix PolicyData and IPolicyData; make
them consistent by either renaming the section heading to IPolicyData and
ensuring examples/imports reference IPolicyData, or replace the documented
snippet with the exported PolicyData class signature (showing it implements
IPolicyData) so readers know what to import from `@authup/access`; update example
usages and any preceding text to reference the same symbol (PolicyData or
IPolicyData) and ensure the export name matches the package API.
In `@docs/src/sdks/javascript/client-web-kit/collections.md`:
- Around line 105-123: The docs currently list header, footer, noMore, and
loading as simple booleans but the actual component contract (see component.ts)
defines them as boolean | options object and also supports the option fields
realmId, loadOnSetup, and body; update the Collection props docs to describe
each of header/footer/noMore/loading as accepting either a boolean or an options
object and enumerate the object fields (realmId, loadOnSetup, body) and their
types/semantics, and also expand the query section to document its full
parameter set to match the runtime shape exported by the component utilities.
---
Nitpick comments:
In `@docs/src/guide/deployment/docker.md`:
- Line 19: Remove the leading shell prompt from the command string "$ mkdir
authup && cd authup" so it reads "mkdir authup && cd authup" to satisfy
markdownlint MD014; update the same style elsewhere in this document if any
other commands include a "$" prefix to keep examples consistent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d25a27b9-334e-4bf3-b46e-cd343fc0f476
📒 Files selected for processing (10)
.github/workflows/docs.ymldocs/src/guide/contributing/controllers.mddocs/src/guide/contributing/shared-key-pair.mddocs/src/guide/deployment/configuration-server-core.mddocs/src/guide/deployment/docker.mddocs/src/sdks/javascript/access/api-reference.mddocs/src/sdks/javascript/access/permission-checker.mddocs/src/sdks/javascript/client-web-kit/collections.mddocs/src/sdks/javascript/client-web-kit/forms.mddocs/src/sdks/javascript/core-kit/api-reference.md
✅ Files skipped from review due to trivial changes (1)
- docs/src/sdks/javascript/access/permission-checker.md
🚧 Files skipped from review as they are similar to previous changes (3)
- docs/src/guide/contributing/controllers.md
- docs/src/sdks/javascript/core-kit/api-reference.md
- docs/src/guide/contributing/shared-key-pair.md
| /** | ||
| * Application host. | ||
| * default: localhost | ||
| */ | ||
| host: 'localhost', |
There was a problem hiding this comment.
Fix the documented host default and example.
This block says the default is localhost and shows host: 'localhost', but apps/server-core/src/app/modules/config/normalize.ts actually defaults host to 0.0.0.0. For deployment docs, that mismatch is material because it changes whether the service binds only locally or on all interfaces.
Suggested doc fix
/**
* Application host.
- * default: localhost
+ * default: 0.0.0.0
*/
- host: 'localhost',
+ host: '0.0.0.0',🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/deployment/configuration-server-core.md` around lines 29 - 33,
The docs incorrectly state the default host as 'localhost'; update the
documentation block in configuration-server-core.md to reflect the actual
default used in apps/server-core/src/app/modules/config/normalize.ts (host
default '0.0.0.0') and adjust the example value and description to indicate it
binds on all interfaces by default rather than only localhost, referencing the
host property shown in the docs.
| /** | ||
| * Domain for setting cookies after authorization. | ||
| */ | ||
| cookieDomain: undefined, |
There was a problem hiding this comment.
Mark cookieDomain as deprecated or drop it from the example.
apps/server-core/src/app/modules/config/types.ts already marks this option @deprecated, but this page documents it like a normal config key. That will steer new deployments toward a legacy setting.
Suggested doc fix
/**
* Domain for setting cookies after authorization.
+ * `@deprecated`
*/
cookieDomain: undefined,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/guide/deployment/configuration-server-core.md` around lines 41 - 44,
The docs example exposes cookieDomain as a regular config key even though
apps/server-core/src/app/modules/config/types.ts marks cookieDomain as
`@deprecated`; update this docs snippet to either remove cookieDomain from the
example or explicitly mark it as deprecated in the docs (e.g., add
"(deprecated)" or a deprecation note next to cookieDomain) and reference the
types.ts deprecation so readers are guided to avoid using cookieDomain for new
deployments. Ensure the example and any surrounding text consistently reflect
that cookieDomain is deprecated.
| <AUsers> | ||
| <template #loading="props"> | ||
| Loading resources... | ||
| </template> | ||
| </AUsers> | ||
| </template> | ||
| ``` | ||
|
|
||
|
|
||
| **`noMore`** | ||
|
|
||
| ```vue | ||
| <script> | ||
| import { defineComponent } from 'vue'; | ||
| import { AUsers } from '@authup/client-web-kit'; | ||
|
|
||
| export default defineComponent({ | ||
| components: { | ||
| AUsers | ||
| } | ||
| }) | ||
| </script> | ||
| <template> | ||
| <AUsers> | ||
| <template #no-more="props"> | ||
| No more resources available... |
There was a problem hiding this comment.
Remove the nonexistent slot props from loading/no-more examples.
packages/client-web-kit/src/components/utility/entity/collection/types.ts:86-96 types both slots as undefined, so documenting #loading="props" and #no-more="props" suggests an API that is not actually there.
Proposed fix
<template>
<AUsers>
- <template `#loading`="props">
+ <template `#loading`>
Loading resources...
</template>
</AUsers>
</template> <template>
<AUsers>
- <template `#no-more`="props">
+ <template `#no-more`>
No more resources available...
</template>
</AUsers>
</template>🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/src/sdks/javascript/client-web-kit/collections.md` around lines 235 -
260, The docs show nonexistent slot props for the AUsers component's loading and
no-more slots; update the examples to remove the slot-binding (change `<template
`#loading`="props">` and `<template `#no-more`="props">` to `<template `#loading`>`
and `<template `#no-more`>` respectively) so they match the actual slot typings
(see AUsers and the slot types in collection/types.ts where both slots are typed
as undefined).
4a015fd to
bfe95c5
Compare
Summary by CodeRabbit
Documentation
Chores