Skip to content

feat: add the account console (/account self-service surface) - #3373

Merged
tada5hi merged 5 commits into
masterfrom
feat/account-console
Aug 2, 2026
Merged

tada5hi merged 5 commits into
masterfrom
feat/account-console

Conversation

@tada5hi

@tada5hi tada5hi commented Aug 2, 2026 •

Copy link
Copy Markdown
Collaborator

Implements plan 080: the end-user account self-service surface on the IdP origin, closing the headless gap (a server-core-only deployment previously had no UI for MFA/session/consent management) and giving every downstream RP a stable "Manage account" link target.

What

  • New app workspace apps/client-account-console (@authup/client-account-console, AGPL): a client-only Vite/Vue SPA with pages for profile, password, authenticators, sessions, and application consents — thin wrappers over the existing kit components (AUserForm, AUserPasswordForm, AUserAuthenticators, ASessions incl. "log out other devices", AConsents).
  • Embedded by default: server-core depends on the package at runtime and serves its built dist/ at /account — per-request runtime-config injection (window.__AUTHUP_ACCOUNT__ via an <!--account-config--> marker), lang/color-mode stamping from the shared cookies, asset-href rebase for sub-path deployments, and the same security headers as the SSR auth pages. Static assets ride the assets middleware.
  • Standalone by choice: the same dist is hostable on any static host or other origin with one injected apiUrl plus TRUSTED_ORIGINS registration (the account-console client's redirect/post-logout allowlists derive from the origin set). With nothing injected, the app derives the API URL same-origin from its base path.
  • Login is a full auth-code + PKCE flow against the per-realm account-console client (Keycloak model): per-app session/audit attribution and access-policy enforceability. The app's router guard consumes the saved authorization request (state check, PKCE params, code/state stripping; a failed exchange surfaces a readable error that also suppresses the automatic re-kick). A session-less visit renders the realm chooser; ?realmId= deep links skip it. An accessPolicyId denial renders a readable access-denied card with a use-another-account escape hatch.
  • Session continuity: the code exchange reuses the session row created by the hosted login and re-stamps its clientId to account-console — one session per interactive login, pinned end-to-end.
  • Kit: new AAccountShell chrome (nav tabs, user chip, sign-out) styled via client-web-kit-theme's new styles/account.css behind --authup-account-* tokens.
  • Config: accountConsoleEnabled (ACCOUNT_CONSOLE_ENABLED, default true) rides StatusResponseFeatures.accountConsole (status endpoint + injected config); disabled state renders the localized workflow-disabled notice, so stale links do not dead-end.
  • Admin console: the header user name links to <apiUrl>/account; the documented posture for restricting admin-console via access policy is flipped now that regular users have somewhere else to go.
  • Packaging: registered in release-please config/manifest and in the launcher's packed-smoke workspace list (server-core's runtime dependency resolves from the tarball); no binary, no launcher child.

Tests

  • account-pages.spec.ts: shell serving, config injection, assets, security headers, disabled flag, no per-user state in the response body.
  • account-console-session.spec.ts: the work-item-0 pin — login → authorize vs the provisioned account-console client → PKCE exchange → exactly one session row, clientId re-stamped.
  • Kit account-shell.spec.ts; account app config.spec.ts (runtime-config resolution matrix).
  • Full server-core + kit suites, check:types, root build, and test:smoke:packed verified green.

Docs

New deployment-guide page (account-console.md, incl. standalone hosting), config reference entries, MFA-guide self-service pointer, provisioning posture update, LICENSING/AGENTS + .agents/* updates.

Summary by CodeRabbit

  • New Features

    • Added an Account Console at /account for managing profiles, passwords, authenticators, active sessions, and application permissions.
    • Added realm selection, secure sign-in, logout, access-denied recovery, dark mode, localization, and responsive navigation.
    • Added session management, including revoking individual or all other sessions.
    • Added application consent management with per-scope and full-access revocation.
    • Added a Manage account link from the Admin Console.
  • Configuration

    • Account Console availability can be enabled or disabled through server configuration.
  • Documentation

    • Added deployment and configuration guidance for embedded and standalone hosting.

tada5hi added 2 commits August 2, 2026 19:00
End-user self-service on the IdP origin, served by server-core's embedded
SSR app: profile, password, authenticators, sessions and application
consents. Works headless and gives every downstream RP a stable
"Manage account" link target.

- login is a full auth-code + PKCE flow against the per-realm
  account-console client; the ui router guard consumes the kit's saved
  authorization request (state check, PKCE params, code/state stripping,
  readable failure state), and the session-continuity machinery reuses
  the cookie session row and re-stamps its clientId (pinned e2e)
- new kit component AAccountShell (+ AAccountShellNavItem type), styled
  via client-web-kit-theme styles/account.css behind --authup-account-*
  tokens
- accountConsoleEnabled config flag (ACCOUNT_CONSOLE_ENABLED, default
  true) rides StatusResponseFeatures.accountConsole; disabled state
  serves the localized workflow-disabled notice
- an accessPolicyId denial on the client surfaces as an access-denied
  card with a use-another-account escape hatch; error presence
  suppresses the realm-hint auto-kick (no unattended redirect loop)
- admin console header links the user name to <apiUrl>/account
- docs: dedicated account-console deployment page, config reference,
  provisioning posture flip for restricting admin-console
Extract the /account surface out of server-core's SSR ui app into the
dedicated apps/client-account-console workspace (the reserved name): a
client-only Vite/Vue SPA — auth-gated content never server-rendered
anyway, so the SPA shape drops the payload/base-path coupling instead of
adding machinery.

- server-core depends on @authup/client-account-console at runtime and
  serves its built dist at /account: per-request runtime-config injection
  (window.__AUTHUP_ACCOUNT__ via the <!--account-config--> marker),
  lang/color-mode stamping from the shared cookies, asset-href rebase for
  sub-path deployments, same security headers as the SSR pages; static
  assets ride the assets middleware (/account/assets)
- the same dist is hostable standalone on any static host / other origin
  with one injected apiUrl (+ TRUSTED_ORIGINS registration); with nothing
  injected the app derives the API URL same-origin from its base path
- the PKCE-aware code-exchange guard moves into the app's own router;
  the SSR ui app's guard reverts to the bare exchange
- no binary, no launcher child; the package ships dist/ only and joins
  the launcher's packed smoke set so server-core's dependency resolves
  from the tarball (test:smoke:packed verified green)
- registered in release-please config + manifest; AGPL like the other
  apps; docs gain a standalone-hosting section
Copilot AI review requested due to automatic review settings August 2, 2026 17:55
@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a new account-console SPA with account self-service pages, OAuth2 authorization-code and PKCE authentication, shared shell components, server-core /account hosting, feature configuration, session continuity, packaging, and deployment documentation.

Changes

Account Console Foundation

Layer / File(s) Summary
Application and shared UI foundation
apps/client-account-console/*, packages/client-web-kit/..., packages/client-web-kit-theme/..., packages/i18n/...
Adds the Vue/Vite account-console application, runtime configuration, cookie persistence, shared AAccountShell, styling, translations, and package metadata.
Authentication and navigation
apps/client-account-console/src/main.ts, apps/client-account-console/src/pages/index.vue, apps/client-admin-console/components/header.vue
Adds realm selection, PKCE login, callback validation, logout, access-denied recovery, account navigation, and an admin-console link to /account.
Self-service pages
apps/client-account-console/src/pages/*
Adds overview, password, authenticator, session, and application-consent management pages with localized toasts and revocation controls.
Server-core integration
apps/server-core/src/adapters/http/..., apps/server-core/src/app/modules/..., apps/server-core/package.json
Serves the packaged SPA at /account, mounts assets, injects runtime configuration, adds the feature flag, and registers account routes.
Validation and deployment support
apps/server-core/test/..., apps/client-account-console/test/..., docs/src/guide/deployment/..., release-please-config.json
Adds configuration, serving, status, asset, and session-continuity tests, plus deployment and release documentation.

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related PRs

  • authup/authup#3371: Provisions the account-console system client consumed by this SPA and server integration.
  • authup/authup#3191: Adds authorization-code session reuse used by the account-console continuity flow.
  • authup/authup#3232: Adds MFA authenticator APIs and UI consumed by the authenticator page.

Suggested reviewers: copilot

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant AccountConsole
  participant AuthorizationServer
  participant ServerCore
  Browser->>ServerCore: Request /account
  ServerCore-->>Browser: Return SPA shell and runtime configuration
  Browser->>AccountConsole: Mount application
  AccountConsole->>AuthorizationServer: Start realm-aware PKCE login
  AuthorizationServer-->>AccountConsole: Return authorization code
  AccountConsole->>AuthorizationServer: Exchange code and PKCE verifier
  AuthorizationServer-->>AccountConsole: Return authenticated session
  AccountConsole->>ServerCore: Request account self-service data
  ServerCore-->>AccountConsole: Return account data
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: adding the /account end-user self-service console.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/account-console

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@pkg-pr-new

pkg-pr-new Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

authup

npm i https://pkg.pr.new/authup/authup@3373

@authup/client-account-console

npm i https://pkg.pr.new/authup/authup/@authup/client-account-console@3373

@authup/client-admin-console

npm i https://pkg.pr.new/authup/authup/@authup/client-admin-console@3373

@authup/server-core

npm i https://pkg.pr.new/authup/authup/@authup/server-core@3373

@authup/access

npm i https://pkg.pr.new/authup/authup/@authup/access@3373

@authup/client-web-kit

npm i https://pkg.pr.new/authup/authup/@authup/client-web-kit@3373

@authup/client-web-kit-theme

npm i https://pkg.pr.new/authup/authup/@authup/client-web-kit-theme@3373

@authup/client-web-nuxt

npm i https://pkg.pr.new/authup/authup/@authup/client-web-nuxt@3373

@authup/client-web-theme

npm i https://pkg.pr.new/authup/authup/@authup/client-web-theme@3373

@authup/core-http-kit

npm i https://pkg.pr.new/authup/authup/@authup/core-http-kit@3373

@authup/core-kit

npm i https://pkg.pr.new/authup/authup/@authup/core-kit@3373

@authup/core-realtime-kit

npm i https://pkg.pr.new/authup/authup/@authup/core-realtime-kit@3373

@authup/errors

npm i https://pkg.pr.new/authup/authup/@authup/errors@3373

@authup/i18n

npm i https://pkg.pr.new/authup/authup/@authup/i18n@3373

@authup/kit

npm i https://pkg.pr.new/authup/authup/@authup/kit@3373

@authup/server-adapter-kit

npm i https://pkg.pr.new/authup/authup/@authup/server-adapter-kit@3373

@authup/server-adapter-node

npm i https://pkg.pr.new/authup/authup/@authup/server-adapter-node@3373

@authup/server-adapter-socket-io

npm i https://pkg.pr.new/authup/authup/@authup/server-adapter-socket-io@3373

@authup/server-adapter-web

npm i https://pkg.pr.new/authup/authup/@authup/server-adapter-web@3373

@authup/server-kit

npm i https://pkg.pr.new/authup/authup/@authup/server-kit@3373

@authup/server-test-kit

npm i https://pkg.pr.new/authup/authup/@authup/server-test-kit@3373

@authup/specs

npm i https://pkg.pr.new/authup/authup/@authup/specs@3373

commit: 3cfa627

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a first-party end-user “Account Console” SPA (/account) to complement server-core-only/headless deployments, and wires it into server-core (serving + config injection) plus ecosystem touchpoints (status feature flag, admin console link, docs, packaging, tests).

Changes:

  • Introduces new app workspace apps/client-account-console (Vite/Vue SPA) with self-service pages (profile/password/authenticators/sessions/consents).
  • Embeds the built SPA into apps/server-core at /account (HTML shell serving, runtime config injection, asset rebasing + /account/assets mount) and exposes accountConsoleEnabled via status features.
  • Updates kit/theme (AAccountShell, CSS tokens/styles), i18n keys/catalogs, admin console header link, docs, release-please + packaging manifests, and adds/updates tests.

Reviewed changes

Copilot reviewed 70 out of 72 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
release-please-config.json Registers client-account-console for release automation.
packages/i18n/src/constants.ts Adds new translation keys and extends “app chrome” namespace scope.
packages/i18n/src/catalogs/fr/client.ts Adds client intro string for account sign-in.
packages/i18n/src/catalogs/fr/app.ts Adds Manage account app label.
packages/i18n/src/catalogs/es/client.ts Adds client intro string for account sign-in.
packages/i18n/src/catalogs/es/app.ts Adds Manage account app label.
packages/i18n/src/catalogs/en/client.ts Adds client intro string for account sign-in.
packages/i18n/src/catalogs/en/app.ts Adds Manage account app label.
packages/i18n/src/catalogs/de/client.ts Adds client intro string for account sign-in.
packages/i18n/src/catalogs/de/app.ts Adds Manage account app label.
packages/core-http-kit/src/domains/workflows/status/types.ts Extends status feature flags with accountConsole.
packages/client-web-kit/test/unit/components/utility/account-shell.spec.ts Adds unit tests for the new account shell component.
packages/client-web-kit/src/components/utility/types.ts Introduces AAccountShellNavItem type for shell nav items.
packages/client-web-kit/src/components/utility/index.ts Exports new account shell component + types.
packages/client-web-kit/src/components/utility/AAccountShell.vue Adds AAccountShell chrome component (header/nav/body + sign-out emit).
packages/client-web-kit-theme/assets/css/styles/tokens.css Adds --authup-account-* design tokens.
packages/client-web-kit-theme/assets/css/styles/account.css Adds component CSS for the account shell surface.
packages/client-web-kit-theme/assets/css/index.css Wires account stylesheet into theme entry.
package-lock.json Adds workspace + dependency graph updates for the new app and server-core dependency.
LICENSING.md Adds licensing row for client-account-console.
docs/src/guide/deployment/provisioning.md Documents account-console client posture + redirects + admin-console restriction guidance.
docs/src/guide/deployment/configuration-server-core.md Documents accountConsoleEnabled config and env var.
docs/src/guide/deployment/configuration-server-core-mfa.md Points MFA self-service to account console.
docs/src/guide/deployment/account-console.md Adds new deployment guide page for the account console.
docs/src/.vitepress/config.mjs Adds navigation entry for Account Console docs.
apps/server-core/test/unit/http/controllers/workflows/token/account-console-session.spec.ts Adds session continuity test for account-console PKCE flow.
apps/server-core/test/unit/http/controllers/workflows/status.spec.ts Updates status feature expectations to include accountConsole.
apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts Adds tests for /account serving, injection, assets, headers, and disabled state.
apps/server-core/test/unit/adapters/http/middleware/built-in/assets.spec.ts Extends assets middleware tests for account console asset mount.
apps/server-core/src/app/modules/http/modules/controller.ts Registers AccountController and includes account-console feature in status features.
apps/server-core/src/app/modules/config/validator.ts Validates accountConsoleEnabled.
apps/server-core/src/app/modules/config/types.ts Adds accountConsoleEnabled to the config model.
apps/server-core/src/app/modules/config/read/env.ts Reads ACCOUNT_CONSOLE_ENABLED from env.
apps/server-core/src/app/modules/config/normalize.ts Defaults accountConsoleEnabled to true.
apps/server-core/src/app/modules/config/constants.ts Adds ACCOUNT_CONSOLE_ENABLED env var name.
apps/server-core/src/adapters/http/ui/index.ts Exports account UI serving helpers.
apps/server-core/src/adapters/http/ui/base-path.ts Adds /account/ asset URL rebasing helper.
apps/server-core/src/adapters/http/ui/account.ts Implements account console bundle resolution + HTML serving + config injection + headers.
apps/server-core/src/adapters/http/middleware/built-in/assets.ts Mounts account console static assets under /account/assets when available.
apps/server-core/src/adapters/http/controllers/workflows/index.ts Exports new account workflow controller module.
apps/server-core/src/adapters/http/controllers/workflows/account/module.ts Adds AccountController to serve SPA shell for /account routes.
apps/server-core/src/adapters/http/controllers/workflows/account/index.ts Re-exports the account controller module.
apps/server-core/package.json Adds runtime dependency on @authup/client-account-console.
apps/client-admin-console/components/header.vue Links header user name to <apiUrl>/account and adds translation key use.
apps/client-account-console/vite.config.ts Vite build config for the new SPA (base /account/, icon bundling scan, aliases).
apps/client-account-console/tsconfig.json TypeScript config for the new SPA workspace.
apps/client-account-console/test/vitest.config.ts Vitest configuration for the new SPA tests.
apps/client-account-console/test/unit/config.spec.ts Unit tests for runtime config resolution behavior.
apps/client-account-console/src/tailwind.css Tailwind v4 entry + theme imports + scan sources for the app.
apps/client-account-console/src/pages/utils.ts Adds toast helpers for page surfaces.
apps/client-account-console/src/pages/sessions.vue Implements sessions page and “log out other devices” action.
apps/client-account-console/src/pages/password.vue Implements password change page using kit component.
apps/client-account-console/src/pages/overview.vue Implements profile overview page using kit component.
apps/client-account-console/src/pages/index.vue Implements shell page with realm chooser, PKCE kick, denial state, and sign-out.
apps/client-account-console/src/pages/authenticators.vue Implements authenticators self-service page using kit component.
apps/client-account-console/src/pages/applications.vue Implements application consents page with grouped display and revoke actions.
apps/client-account-console/src/main.ts Bootstraps Vue app, router guard for code exchange, kit/vuecs installation, themes.
apps/client-account-console/src/env.d.ts Declares Nuxt icon bundle virtual modules for TS.
apps/client-account-console/src/di.ts Provides/injects account console runtime config.
apps/client-account-console/src/cookie.ts Cookie-backed refs for locale/color-mode persistence.
apps/client-account-console/src/config.ts Runtime config resolution (injected vs same-origin derivation).
apps/client-account-console/src/color-mode.ts Cookie-driven color-mode binding for non-Nuxt app.
apps/client-account-console/src/App.vue App root shell using kit <AAuthApp>.
apps/client-account-console/package.json Declares new app package metadata and scripts (build/publish/test).
apps/client-account-console/LICENSE Adds AGPL license file for the new app.
apps/client-account-console/index.html Adds HTML entry with <!--account-config--> marker for injection.
apps/authup/test/smoke/run.mjs Ensures packed smoke test includes the account console workspace tarball.
AGENTS.md Updates licensing guidance to include the new app.
.release-please-manifest.json Adds apps/client-account-console to the release manifest.
.agents/structure.md Documents new app workspace and its relationship to server-core embedding.
.agents/conventions.md Updates app naming/role conventions to include account console.
.agents/architecture.md Documents account console architecture, serving seam, and auth flow details.
Suppressed comments (2)

apps/client-account-console/src/pages/index.vue:230

  • errorCode is computed but not returned from setup(), so the template can’t conditionally render a readable error state for ?error=invalid_grant (failed code exchange). Expose it to the template (or expose a derived hasError).
        return {
            enabled: config.enabled,
            denied,
            authenticated,
            unauthenticated,
            items,
            translations,
            handleRealmSelect,
            signOut,
            useAnotherAccount,
            retry,
        };

apps/client-account-console/src/pages/index.vue:276

  • When a code exchange fails, the user currently sees the generic sign-in intro, not a readable failure hint. This contradicts the PR description (“failed exchange surfaces a readable error”) and also makes it unclear why the auto re-kick is suppressed. Consider showing a localized failure message when ?error= is present (except access_denied, which already has its own card).
            <template v-else-if="unauthenticated">
                <div class="text-center">
                    {{ translations.accountSignInIntro }}
                </div>
                <ARealmGrid @select="handleRealmSelect" />

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 11

🧹 Nitpick comments (3)
apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts (1)

27-29: 🩺 Stability & Availability | 🔵 Trivial

Build the UI assets before running this suite.

The production page renderer reads built UI assets. Run npm run build before server-core tests and preserve that order in CI. Based on learnings, SSR page tests under apps/server-core/test/unit/http/controllers/workflows/ require built UI assets.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts`
around lines 27 - 29, Update the test/CI setup around the account-pages suite
and the SSR tests under workflows so the UI production assets are built with npm
run build before server-core tests execute. Preserve this build-before-test
ordering in CI, ensuring the existing suite setup in beforeAll runs only after
the assets are available.

Source: Learnings

apps/client-account-console/src/main.ts (1)

196-198: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Handle a rejected router.isReady().

If the initial navigation guard throws outside its try blocks, router.isReady() rejects. The app then never mounts and the page stays blank without a logged reason. Add a rejection handler that reports the error and still mounts the app.

🛡️ Proposed fix
-router.isReady().then(() => {
-    app.mount('`#app`');
-});
+router.isReady()
+    .catch((e) => {
+        console.error('Initial navigation failed.', e);
+    })
+    .finally(() => {
+        app.mount('`#app`');
+    });
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/client-account-console/src/main.ts` around lines 196 - 198, Update the
router.isReady() startup chain to handle rejected initial navigation by logging
the rejection error, then mount the app regardless of whether the promise
resolves or rejects. Preserve the existing successful-navigation mounting
behavior in the app.mount call.
apps/client-account-console/src/pages/applications.vue (1)

149-160: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Bound the concurrency and remove the silent truncation.

Two problems exist in this block.

pagination: { limit: 1000 } truncates silently. If a client holds more than 1000 consent rows, the revoke leaves the remaining scopes granted. The comment at lines 145-148 promises the opposite.

Promise.all starts one request per row at once. With a large result set this produces up to 1000 concurrent requests against the API.

Page through the result set and delete in bounded batches.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/client-account-console/src/pages/applications.vue` around lines 149 -
160, Update the consent revocation flow around httpClient.consent.getMany and
the subsequent Promise.all to paginate until all matching rows are retrieved,
avoiding the fixed limit of 1000 and silent truncation. Delete rows in bounded
batches with a small concurrency limit, awaiting each batch before continuing,
so every consent row is revoked without issuing one request per row
simultaneously.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/architecture.md:
- Around line 965-968: Update the package-resolution approach described near
createRequire(...).resolve so it targets an actually exported account-console
entry rather than assuming `@authup/client-account-console/package.json` is
resolvable; alternatively, update the package metadata to export ./package.json
and ./dist/* and include package.json in published files. Preserve resolution
for both workspace symlinks and published installs.

In @.release-please-manifest.json:
- Line 4: Remove the manually added apps/client-account-console version entry
from .release-please-manifest.json, leaving release-please to create or update
the manifest entry in its release PR.

In `@apps/client-account-console/package.json`:
- Line 3: Remove the manually managed version from the package metadata,
register the client-account-console package in the repository’s release-please
configuration, and rely on release-please to generate future version updates.

In `@apps/client-account-console/src/cookie.ts`:
- Around line 20-21: Update the cookie-reading logic around the document.cookie
match and decodeURIComponent call to catch malformed URI decoding errors and
return undefined. Preserve the existing decoded-value behavior for valid cookies
so createCookieRef can use its initial or fallback value when decoding fails.

In `@apps/client-account-console/src/pages/applications.vue`:
- Around line 104-110: Update revokeOne in
apps/client-account-console/src/pages/applications.vue:104-110 to use a new
single-scope translation key such as CONSENT_REVOKE_DESCRIPTION instead of
translations.consentRevokeAllDescription. Update the bulk-revoke success toast
at apps/client-account-console/src/pages/applications.vue:162-162 to use a new
key such as CONSENT_REVOKE_ALL_SUCCESS, and add both keys to the translation
catalog.
- Around line 247-254: Update the icon-only revoke button in the applications
template to add an aria-label using the existing consentRevoke translation, and
bind its disabled state to revoking so individual revocation cannot start during
a bulk revoke. Preserve the existing click handler and title.

In `@apps/client-account-console/src/pages/index.vue`:
- Around line 208-217: Update the retry function to invoke the current realm’s
kick() authorization flow instead of only replacing the route, preserving the
existing authorization-request and PKCE behavior for account-console
accessPolicyId denial. Keep useAnotherAccount’s logout-and-redirect behavior
unchanged.

In `@apps/client-admin-console/components/header.vue`:
- Around line 56-60: Update the accountUrl computed property to safely handle a
missing runtimeConfig.public.apiUrl before calling replace, preserving the
existing normalized URL and /account suffix when configured while returning a
safe non-throwing result when absent.

In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts`:
- Around line 94-100: Extend the test around extractAccountConfig to verify the
rendered disabled-state notice, not only config.features.accountConsole being
false. Exercise the account app with this runtime configuration or assert the
expected disabled UI message so a client regression that ignores the flag fails
the test.
- Around line 69-76: Update the privacy assertion in the test “should carry no
server-rendered per-user state” to inspect the account runtime global,
window.__AUTHUP_ACCOUNT__, rather than only window.__AUTHUP__. Assert that the
account config contains only documented operator-level fields or explicitly
rejects actor- or session-scoped payloads, preserving the existing static-shell
expectation.

In `@packages/client-web-kit/src/components/utility/AAccountShell.vue`:
- Around line 117-134: Update the VCLink navigation item rendering in
AAccountShell to bind aria-current to item.active, while preserving the existing
active CSS class and navigation behavior.

---

Nitpick comments:
In `@apps/client-account-console/src/main.ts`:
- Around line 196-198: Update the router.isReady() startup chain to handle
rejected initial navigation by logging the rejection error, then mount the app
regardless of whether the promise resolves or rejects. Preserve the existing
successful-navigation mounting behavior in the app.mount call.

In `@apps/client-account-console/src/pages/applications.vue`:
- Around line 149-160: Update the consent revocation flow around
httpClient.consent.getMany and the subsequent Promise.all to paginate until all
matching rows are retrieved, avoiding the fixed limit of 1000 and silent
truncation. Delete rows in bounded batches with a small concurrency limit,
awaiting each batch before continuing, so every consent row is revoked without
issuing one request per row simultaneously.

In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts`:
- Around line 27-29: Update the test/CI setup around the account-pages suite and
the SSR tests under workflows so the UI production assets are built with npm run
build before server-core tests execute. Preserve this build-before-test ordering
in CI, ensuring the existing suite setup in beforeAll runs only after the assets
are available.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9333fa85-ea38-4af2-9f44-29ad6c5ef4fc

📥 Commits

Reviewing files that changed from the base of the PR and between 77fbd8c and b232fdd.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (71)
  • .agents/architecture.md
  • .agents/conventions.md
  • .agents/structure.md
  • .release-please-manifest.json
  • AGENTS.md
  • LICENSING.md
  • apps/authup/test/smoke/run.mjs
  • apps/client-account-console/LICENSE
  • apps/client-account-console/index.html
  • apps/client-account-console/package.json
  • apps/client-account-console/src/App.vue
  • apps/client-account-console/src/color-mode.ts
  • apps/client-account-console/src/config.ts
  • apps/client-account-console/src/cookie.ts
  • apps/client-account-console/src/di.ts
  • apps/client-account-console/src/env.d.ts
  • apps/client-account-console/src/main.ts
  • apps/client-account-console/src/pages/applications.vue
  • apps/client-account-console/src/pages/authenticators.vue
  • apps/client-account-console/src/pages/index.vue
  • apps/client-account-console/src/pages/overview.vue
  • apps/client-account-console/src/pages/password.vue
  • apps/client-account-console/src/pages/sessions.vue
  • apps/client-account-console/src/pages/utils.ts
  • apps/client-account-console/src/tailwind.css
  • apps/client-account-console/test/unit/config.spec.ts
  • apps/client-account-console/test/vitest.config.ts
  • apps/client-account-console/tsconfig.json
  • apps/client-account-console/vite.config.ts
  • apps/client-admin-console/components/header.vue
  • apps/server-core/package.json
  • apps/server-core/src/adapters/http/controllers/workflows/account/index.ts
  • apps/server-core/src/adapters/http/controllers/workflows/account/module.ts
  • apps/server-core/src/adapters/http/controllers/workflows/index.ts
  • apps/server-core/src/adapters/http/middleware/built-in/assets.ts
  • apps/server-core/src/adapters/http/ui/account.ts
  • apps/server-core/src/adapters/http/ui/base-path.ts
  • apps/server-core/src/adapters/http/ui/index.ts
  • apps/server-core/src/app/modules/config/constants.ts
  • apps/server-core/src/app/modules/config/normalize.ts
  • apps/server-core/src/app/modules/config/read/env.ts
  • apps/server-core/src/app/modules/config/types.ts
  • apps/server-core/src/app/modules/config/validator.ts
  • apps/server-core/src/app/modules/http/modules/controller.ts
  • apps/server-core/test/unit/adapters/http/middleware/built-in/assets.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/status.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/token/account-console-session.spec.ts
  • docs/src/.vitepress/config.mjs
  • docs/src/guide/deployment/account-console.md
  • docs/src/guide/deployment/configuration-server-core-mfa.md
  • docs/src/guide/deployment/configuration-server-core.md
  • docs/src/guide/deployment/provisioning.md
  • packages/client-web-kit-theme/assets/css/index.css
  • packages/client-web-kit-theme/assets/css/styles/account.css
  • packages/client-web-kit-theme/assets/css/styles/tokens.css
  • packages/client-web-kit/src/components/utility/AAccountShell.vue
  • packages/client-web-kit/src/components/utility/index.ts
  • packages/client-web-kit/src/components/utility/types.ts
  • packages/client-web-kit/test/unit/components/utility/account-shell.spec.ts
  • packages/core-http-kit/src/domains/workflows/status/types.ts
  • packages/i18n/src/catalogs/de/app.ts
  • packages/i18n/src/catalogs/de/client.ts
  • packages/i18n/src/catalogs/en/app.ts
  • packages/i18n/src/catalogs/en/client.ts
  • packages/i18n/src/catalogs/es/app.ts
  • packages/i18n/src/catalogs/es/client.ts
  • packages/i18n/src/catalogs/fr/app.ts
  • packages/i18n/src/catalogs/fr/client.ts
  • packages/i18n/src/constants.ts
  • release-please-config.json

Comment thread .agents/architecture.md Resolved
{
".": "1.0.0-beta.58",
"apps/authup": "1.0.0-beta.58",
"apps/client-account-console": "1.0.0-beta.58",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Do not hand-edit the release manifest.

Remove this version entry from the feature change and let release-please create or update it in its release PR. A manual version can drift from release-please state and break package release coordination.

As per coding guidelines, .release-please-manifest.json is owned by release-please and must not be hand-edited.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.release-please-manifest.json at line 4, Remove the manually added
apps/client-account-console version entry from .release-please-manifest.json,
leaving release-please to create or update the manifest entry in its release PR.

Source: Coding guidelines

@@ -0,0 +1,75 @@
{
"name": "@authup/client-account-console",
"version": "1.0.0-beta.58",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Let release-please manage this version.

Line 3 manually sets a release-please-managed version. Register the new package in release-please configuration and use the generated version update.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/client-account-console/package.json` at line 3, Remove the manually
managed version from the package metadata, register the client-account-console
package in the repository’s release-please configuration, and rely on
release-please to generate future version updates.

Source: Coding guidelines

Replace the createRequire + require.resolve dance with locter's
locateUpSync (already a server-core dependency): the node_modules
ancestor walk from server-core's package root, covering the workspace
symlink and published installs alike. Verified against the packed
install layout (test:smoke:packed).
@tada5hi

tada5hi commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai pause

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
✅ Action performed

Reviews paused.

tada5hi added 2 commits August 2, 2026 20:11
Documents running the vite dev server against a running authup server
(VITE_API_URL + TRUSTED_ORIGINS for the sign-in round-trip); config
resolution gains the VITE_API_URL build/dev-time fallback.
- consent "revoke all" now loops fetch-and-delete pages: the previous
  single fetch asked for 1000 rows but the consent schema caps pages at
  50, so grants beyond the first page survived (also fixed in the admin
  console's twin page)
- the account console's retry button re-runs the authorization-code flow
  instead of only clearing the error marker — a bare clear rendered the
  shell off the shared cookie session and sidestepped the client's
  access policy
- a failed code exchange now surfaces a localized notice on the sign-in
  state (CLIENT.LOGIN_FAILED)
- bulk-revoke success toast gets its own key
  (APP.CONSENT_REVOKE_ALL_SUCCESS, x4 locales) instead of reusing the
  confirm description; the shared dialog description stays deliberate
  (accurate for single and bulk revoke alike)
- cookie reads tolerate malformed percent escapes (URIError degraded to
  the fallback value; both the account app and the SSR ui copies)
- scope-revoke chip button: aria-label + disabled during a bulk revoke;
  AAccountShell nav links expose aria-current
- admin console header derives the account URL defensively (missing
  apiUrl degrades to a relative link instead of throwing)
- account-pages spec pins the injected config to exactly the documented
  operator-level keys; disabled-flag test renamed to what it asserts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants