Skip to content

[WIP] [Feat] Built-in auth w/ email service - #540

Merged
Leo-rq-yu merged 100 commits into
mainfrom
feat/email-service
Nov 4, 2025
Merged

Leo-rq-yu merged 100 commits into
mainfrom
feat/email-service

Conversation

@Leo-rq-yu

@Leo-rq-yu Leo-rq-yu commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

Summary

How did you test this change?

Summary by CodeRabbit

  • New Features

    • Built-in authentication UI: sign in/up, verify email, forgot/reset with cross-tab session sync and two-step code→token reset flow.
    • Admin UI: OAuth provider management and unified authentication settings (verification & password methods, sign‑in redirect).
    • Dev/workspace: auth app can be run and served under /auth for local dev and production builds.
  • Documentation

    • New React and Next.js guides for authentication UI components and integration.

@Leo-rq-yu
Leo-rq-yu marked this pull request as draft October 29, 2025 21:22
@coderabbitai

coderabbitai Bot commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adds a new standalone "auth" workspace (Vite/React/Tailwind) with built-in auth UI, cross-tab BroadcastChannel support, backend auth API and OTP refactors (token exchange, public/admin config split), shared-schema and OpenAPI updates, frontend admin auth UI/service replacements, docs, DB migration, and Docker/dev updates.

Changes

Cohort / File(s) Summary
Auth workspace scaffold
auth/package.json, auth/tsconfig.json, auth/tsconfig.node.json, auth/vite.config.ts, auth/index.html, Dockerfile
New Vite + React + TypeScript + Tailwind workspace for built-in auth UI; workspace added to monorepo and incorporated into Dockerfile/build messaging.
Auth app core & entry
auth/src/main.tsx, auth/src/App.tsx, auth/src/index.css, auth/src/vite-env.d.ts
Application bootstrap, routing (auth routes), global styles, and Vite type declarations.
Auth pages & components
auth/src/pages/*, auth/src/components/*
(SignInPage.tsx,SignUpPage.tsx,VerifyEmailPage.tsx,ForgotPasswordPage.tsx,ResetPasswordPage.tsx,ErrorCard.tsx,Layout.tsx)
Built-in sign-in/sign-up/verify/reset pages and small UI components; pages wire redirects, broadcast cross-tab events, and error handling.
Auth utilities & IPC
auth/src/lib/utils.ts, auth/src/lib/broadcastService.ts
Utility helpers (cn, getBackendUrl) and BroadcastService for cross-tab EMAIL_VERIFIED_SUCCESS / PASSWORD_RESET_SUCCESS events with lazy init and graceful degradation.
Frontend admin UI & visuals
frontend/src/features/auth/components/*, frontend/src/features/auth/page/AuthenticationPage.tsx, frontend/src/features/auth/helpers.tsx, frontend/src/index.css
Added AuthMethodsTab, unified ConfigurationTab form, added AUTH_METHODS tab, styling tweaks, and Manrope font CSS var.
Frontend hooks & services
frontend/src/features/auth/hooks/*, frontend/src/features/auth/services/*
New useAuthConfig hook and authConfigService (GET/PUT /auth/config); removed useEmailConfig and email-config.service; renamed oauthConfigService → oAuthConfigService.
Frontend validation & small UI tweaks
frontend/src/lib/utils/validation-schemas.ts, frontend/src/components/ConfirmDialog.tsx, frontend/src/features/database/components/TableForm.tsx, frontend/src/features/visualizer/components/AuthNode.tsx
Added emailSchema and applied to login form; minor button/text color and provider-count UI tweaks.
Backend auth routes & server
backend/src/api/routes/auth.ts, backend/src/api/routes/auth.oauth.ts, backend/src/api/routes/docs.ts, backend/src/server.ts
Added GET /api/auth/public-config, consolidated GET/PUT /api/auth/config, reworked reset/verify endpoints (exchange/token flows), served /auth SPA when present, updated docs map entries.
Backend core refactor
backend/src/core/auth/*
(auth.config.ts,auth.ts,auth.otp.ts,oauth.config.ts)
OTP enums/types renamed and new exchangeCode/token flows added; split getPublicAuthConfig/getAuthConfig; added getConfiguredProviders; many public method signature changes for register/login/verify/reset flows.
Backend utils & validations
backend/src/utils/validations.ts, backend/src/utils/utils.ts
validatePassword and getPasswordRequirementsMessage now use AuthConfigSchema; updated special-character regex and messages.
Shared schemas, OpenAPI & package bumps
shared-schemas/src/auth.schema.ts, shared-schemas/src/auth-api.schema.ts, openapi/auth.yaml, shared-schemas/package.json
Renamed emailAuthConfigSchema → authConfigSchema, added verificationMethod enum, exchange/reset token schemas, redirectTo fields, and extended API shapes/types.
Migrations & infra
backend/migrations/016_update-auth-config-and-email-otp.sql, docker-compose.yml, docker-compose.prod.yml, package.json, eslint.config.js, frontend/README.md
DB migration to add method columns/remove redirect cols and attempts_count; Docker/dev updates to include auth (ports, volumes, ENV, scripts/workspace); removed frontend README; ESLint includes auth globs.
Docs
docs/core-concepts/authentication/ui-components/*.mdx, docs/docs.json, docs/insforge-instructions-sdk.md
New UI Components docs for Next.js and React, navigation updates, and framework-specific auth guidance.

Sequence Diagram(s)

sequenceDiagram
    participant TabA as Browser (Tab A)
    participant AuthUI as Auth UI (/auth)
    participant Backend as Backend API
    participant Broadcast as BroadcastChannel
    participant TabB as Browser (Tab B)

    TabA->>AuthUI: Open /auth (sign-in / sign-up)
    AuthUI->>Backend: POST /api/auth/sessions or POST /api/auth/users
    Backend-->>AuthUI: { user, accessToken?, requireEmailVerification?, redirectTo? }

    alt requireEmailVerification
        AuthUI->>Backend: POST /api/auth/email/send-verification
        Backend-->>TabB: (email with code or link)
        TabB->>Backend: POST /api/auth/email/verify or exchange code -> token -> POST /reset-password
        Backend-->>TabB: { user, accessToken }
        TabB->>Broadcast: broadcast(EMAIL_VERIFIED_SUCCESS, { accessToken, user })
        Broadcast->>AuthUI: EMAIL_VERIFIED_SUCCESS
        AuthUI->>TabA: navigate(redirectTo with tokens)
    end

    opt Password reset (code flow)
        AuthUI->>Backend: POST /api/auth/email/send-reset-password
        AuthUI->>Backend: POST /api/auth/email/exchange-reset-password-token { email, code }
        Backend-->>AuthUI: { token, expiresAt }
        AuthUI->>Backend: POST /api/auth/email/reset-password { newPassword, token }
        Backend-->>AuthUI: Success
    end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Areas needing extra attention:

  • backend core auth refactors and public method signature changes (backend/src/core/auth/*)
  • password reset token exchange, OTP renames/flows, and DB migration (auth.otp.ts, migration SQL, openapi)
  • BroadcastService correctness and lazy-init/graceful degradation (auth/src/lib/broadcastService.ts)
  • Frontend admin replacements and renamed exports (useAuthConfig, authConfigService, oAuthConfigService) and their consumers

Possibly related PRs

Suggested reviewers

  • tonychang04

Poem

🐰 I hopped through code with tiny paws,

Built an auth nook without a pause.
Tabs now whisper tokens bright,
Configs and routes aligned just right.
/auth blooms — a carrot-coded light. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The PR title '[WIP] [Feat] Built-in auth w/ email service' is partially related to the changeset, referring to authentication features, but is overly broad and vague. While the PR adds built-in authentication components, it encompasses much more than just email service (database migrations, backend API restructuring, frontend refactoring, documentation, Docker configuration, and more). The title does not clearly convey the primary scope of integrating a new auth app with comprehensive backend and frontend changes. Consider a more specific title that captures the main objective, such as 'Add built-in authentication UI app with backend API restructuring and configuration management' or focus on the primary change if the scope is broader than initially described.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/email-service

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 and usage tips.

@Leo-rq-yu
Leo-rq-yu force-pushed the feat/email-service branch 2 times, most recently from d4af5b3 to 6482cdf Compare October 30, 2025 03:51

@Fermionic-Lyu Fermionic-Lyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Early reviews. Again, you should put all OSS public auth page into a separate folder. This way your work is isoloated from the main OSS dashboard which makes it easy to test and won't break current working features. Moreover, you should install your auth component package in that mini auth app, so you don't have to rewrite the UI and styles, they are always synced. This is a good way to test your auth component package as well.

Comment thread shared-schemas/src/auth.schema.ts Resolved
Comment thread shared-schemas/src/auth.schema.ts Resolved
Comment thread shared-schemas/src/auth-api.schema.ts Resolved
Comment thread frontend/src/lib/routing/AppRoutes.tsx Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
auth/package.json (1)

1-11: Missing "private": true to prevent accidental publishing.

This workspace package should be marked as private since it's an internal monorepo package not intended for npm publication.

Apply this diff:

 {
   "name": "insforge-auth",
   "version": "1.0.0",
+  "private": true,
   "author": "Insforge",
   "description": "Built-in authentication UI for Insforge users",
   "type": "module",
🧹 Nitpick comments (2)
docs/core-concepts/authentication/ui-components/react.mdx (2)

98-100: Consider hyphenating "sign in" and "sign out" for consistency.

Lines 98–100 reference "sign in" and "sign out" as verb phrases. For consistency with the hyphenated forms used in URLs and component names throughout the documentation (/sign-in, <SignIn>, etc.), consider hyphenating these as "sign-in" and "sign-out" when used as gerunds/nominals in this context. This aligns with compound-modifier style guidance and improves visual consistency.

-  - `afterSignInUrl` (required): Redirect URL after successful sign in (default: `'/'`)
-  - `onSignIn` (optional): Custom function to sync token on sign in
-  - `onSignOut` (optional): Custom function to clear auth state on sign out
+  - `afterSignInUrl` (required): Redirect URL after successful sign-in (default: `'/'`)
+  - `onSignIn` (optional): Custom function to sync token on sign-in
+  - `onSignOut` (optional): Custom function to clear auth state on sign-out

484-484: Hyphenate "sign out" for consistency (line 484).

For consistency with the suggestion above and with URL/component naming conventions, change "after sign out" to "after sign-out".

-  - `afterSignOutUrl` - Redirect URL after sign out
+  - `afterSignOutUrl` - Redirect URL after sign-out
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a72cd15 and 6df7707.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • auth/package.json (1 hunks)
  • docs/core-concepts/authentication/ui-components/react.mdx (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-15T18:18:47.519Z
Learnt from: CR
Repo: InsForge/InsForge PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-10-15T18:18:47.519Z
Learning: Applies to frontend/src/**/use[A-Z]*.ts : Hook files must be named usePascalCase.ts (e.g., useAuth.ts)

Applied to files:

  • docs/core-concepts/authentication/ui-components/react.mdx
🪛 LanguageTool
docs/core-concepts/authentication/ui-components/react.mdx

[grammar] ~98-~98: Use a hyphen to join words.
Context: ...red): Redirect URL after successful sign in (default: '/') - onSignIn (option...

(QB_NEW_EN_HYPHEN)


[grammar] ~99-~99: Use a hyphen to join words.
Context: ...): Custom function to sync token on sign in - onSignOut (optional): Custom func...

(QB_NEW_EN_HYPHEN)


[grammar] ~100-~100: Use a hyphen to join words.
Context: ...tom function to clear auth state on sign out ### Step 2: Configure Router (Built...

(QB_NEW_EN_HYPHEN)


[grammar] ~484-~484: Use a hyphen to join words.
Context: ...terSignOutUrl- Redirect URL after sign out ###` Complete ...

(QB_NEW_EN_HYPHEN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: build-and-push
  • GitHub Check: CI Pre-merge Check
  • GitHub Check: E2E Tests
🔇 Additional comments (3)
docs/core-concepts/authentication/ui-components/react.mdx (1)

1-772: File review: Documentation is comprehensive and well-structured.

The documentation effectively covers setup (provider, router, hooks), built-in auth flow, custom UI alternatives, and full component/hook APIs with TypeScript examples. Previous issues (env var mismatch, missing comma, typo) have been resolved. The tone and structure are well-suited for both human developers and AI agents, with clear Quick Start, alternative patterns, and detailed API reference sections. Code examples are syntactically sound and follow React best practices.

auth/package.json (2)

12-18: The review comment's premise appears incorrect based on verification results.

The verification shows that only the auth workspace explicitly declares @insforge/react and @insforge/shared-schemas as dependencies. Neither frontend nor backend declares these packages as npm dependencies. Frontend has no @insforge packages at all, and backend uses a tsconfig path mapping instead of a declared dependency.

Therefore, there is no cross-workspace version alignment issue to verify—the concern about ensuring "consistent versions across other workspace packages" does not apply, as those packages don't declare these dependencies. The only relevant observation is an internal transitive dependency mismatch within auth itself: auth directly depends on @insforge/shared-schemas@^1.1.19, while its transitive dependency @insforge/react@^0.4.11 requires @insforge/shared-schemas@^1.1.15, but this is a separate concern from cross-workspace alignment.

Likely an incorrect or invalid review comment.


19-27: Project configuration is correct for React 19, but watch for Vite 7.0.5 import resolution regressions.

The TypeScript configuration correctly uses "jsx": "react-jsx" (the new transform required for React 19.2.2), and @vitejs/plugin-react is properly integrated in vite.config.ts. However, Vite 7.0.5 has reported regressions in dependency/import resolution that can cause "Failed to resolve import …" errors. During testing, monitor for import resolution failures; if encountered, try temporarily downgrading Vite to 7.0.4 or apply any workaround mentioned in the linked Vite issue until a patch is released.

Fermionic-Lyu and others added 3 commits November 3, 2025 20:45
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

@Fermionic-Lyu Fermionic-Lyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested many rounds. Should be good for a first release

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
docs/core-concepts/authentication/ui-components/react.mdx (4)

61-62: Fix Note block code fence formatting.

The bash code block is improperly formatted on a single line within the Note block. Move the opening and closing fences to separate lines for correct markdown rendering.

 <Note>
-  **Required Dependencies:** ```bash npm install react@^19.0.0 react-dom@^19.0.0
-  react-router-dom@^7.9.0 ```
+  **Required Dependencies:**
+
+  ```bash
+  npm install react@^19.0.0 react-dom@^19.0.0 react-router-dom@^7.9.0
+  ```
 </Note>

98-100: Use hyphens in "sign-in" and "sign-out" when used as noun phrases.

In documentation, compound words like "sign-in" and "sign-out" should be hyphenated when used as nouns or modifiers. Standardizing this improves consistency and aligns with technical writing conventions.

- `afterSignInUrl` (required): Redirect URL after successful sign in (default: `'/'`)
- `onSignIn` (optional): Custom function to sync token on sign in
- `onSignOut` (optional): Custom function to clear auth state on sign out
+ `afterSignInUrl` (required): Redirect URL after successful sign-in (default: `'/'`)
+ `onSignIn` (optional): Custom function to sync token on sign-in
+ `onSignOut` (optional): Custom function to clear auth state on sign-out

484-484: Hyphenate "sign-out" in props description.

For consistency with the hyphenation pattern used in technical documentation, update this reference:

- `afterSignOutUrl` - Redirect URL after sign out
+ `afterSignOutUrl` - Redirect URL after sign-out

655-678: Clarify the purpose of usePublicAuthConfig hook.

The hook description at line 655 ("Get your authentication config in InsForge") could be more explicit. Consider rewording to clarify that this hook retrieves public (non-sensitive) auth configuration from the backend, which is useful primarily for conditional rendering of OAuth providers and password policies in sign-in/sign-up flows. This helps avoid misuse in other contexts.

The warning at line 680-681 already addresses performance, but the purpose clarity could be improved:

 ### `usePublicAuthConfig()`
 
-Get your authentication config in InsForge:
+Fetch public authentication configuration (OAuth providers, email settings) from your backend:
auth/src/components/ErrorCard.tsx (1)

8-37: Well-implemented error card component.

The component is clean, follows coding guidelines (PascalCase, TypeScript types, proper structure), and includes good dark mode support. The decorative icon correctly uses aria-hidden="true".

Consider adding role="alert" to the outer container for better accessibility—screen readers will announce error messages immediately when they appear.

Apply this diff to enhance accessibility:

 export function ErrorCard({ title = 'Error', children }: ErrorCardProps) {
   return (
-    <div className="w-full max-w-md mx-auto">
+    <div className="w-full max-w-md mx-auto" role="alert">
       <div className="bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-red-200 dark:border-red-800 p-6">
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6df7707 and 94579c0.

📒 Files selected for processing (9)
  • auth/src/App.tsx (1 hunks)
  • auth/src/components/ErrorCard.tsx (1 hunks)
  • auth/src/components/Layout.tsx (1 hunks)
  • auth/src/pages/ForgotPasswordPage.tsx (1 hunks)
  • auth/src/pages/ResetPasswordPage.tsx (1 hunks)
  • auth/src/pages/SignInPage.tsx (1 hunks)
  • auth/src/pages/SignUpPage.tsx (1 hunks)
  • auth/src/pages/VerifyEmailPage.tsx (1 hunks)
  • docs/core-concepts/authentication/ui-components/react.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • auth/src/pages/SignUpPage.tsx
  • auth/src/pages/SignInPage.tsx
  • auth/src/pages/VerifyEmailPage.tsx
  • auth/src/pages/ForgotPasswordPage.tsx
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.{ts,tsx}: Use TypeScript for all code files
Use ES modules (import/export syntax)
Prefer descriptive, unabbreviated variable and function names
Implement proper error handling with try-catch blocks and logging where appropriate
Use single quotes for strings
Include semicolons at the end of statements
Use arrow functions for callbacks and inline functions
Prefer const over let; avoid var
Use template literals for string interpolation
Maintain 2-space indentation
Format code with the repository Prettier configuration
Variables, parameters, properties, and functions must use camelCase
Constants and enum members must use UPPER_CASE
Include JSDoc comments for complex functions

Files:

  • auth/src/App.tsx
  • auth/src/components/ErrorCard.tsx
  • auth/src/pages/ResetPasswordPage.tsx
  • auth/src/components/Layout.tsx
**/*.{tsx,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

React components and TypeScript types/interfaces must use PascalCase

Files:

  • auth/src/App.tsx
  • auth/src/components/ErrorCard.tsx
  • auth/src/pages/ResetPasswordPage.tsx
  • auth/src/components/Layout.tsx
🧠 Learnings (4)
📚 Learning: 2025-10-15T18:18:47.519Z
Learnt from: CR
Repo: InsForge/InsForge PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-10-15T18:18:47.519Z
Learning: Applies to backend/src/api/**/*.ts : Implement authentication and error-handling middleware

Applied to files:

  • auth/src/App.tsx
📚 Learning: 2025-10-15T18:18:47.519Z
Learnt from: CR
Repo: InsForge/InsForge PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-10-15T18:18:47.519Z
Learning: Applies to frontend/src/**/*.tsx : Implement proper loading and error states in UI

Applied to files:

  • auth/src/components/ErrorCard.tsx
📚 Learning: 2025-10-15T18:18:47.519Z
Learnt from: CR
Repo: InsForge/InsForge PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-10-15T18:18:47.519Z
Learning: Applies to frontend/src/**/*.tsx : Follow component composition patterns; keep components focused and single-purpose

Applied to files:

  • auth/src/components/Layout.tsx
📚 Learning: 2025-10-15T18:18:47.519Z
Learnt from: CR
Repo: InsForge/InsForge PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-10-15T18:18:47.519Z
Learning: Applies to frontend/src/**/use[A-Z]*.ts : Hook files must be named usePascalCase.ts (e.g., useAuth.ts)

Applied to files:

  • docs/core-concepts/authentication/ui-components/react.mdx
🧬 Code graph analysis (1)
auth/src/App.tsx (6)
auth/src/components/Layout.tsx (1)
  • Layout (7-13)
auth/src/pages/SignInPage.tsx (1)
  • SignInPage (7-55)
auth/src/pages/SignUpPage.tsx (1)
  • SignUpPage (7-55)
auth/src/pages/VerifyEmailPage.tsx (1)
  • VerifyEmailPage (5-20)
auth/src/pages/ForgotPasswordPage.tsx (1)
  • ForgotPasswordPage (3-11)
auth/src/pages/ResetPasswordPage.tsx (1)
  • ResetPasswordPage (3-11)
🪛 LanguageTool
docs/core-concepts/authentication/ui-components/react.mdx

[grammar] ~98-~98: Use a hyphen to join words.
Context: ...red): Redirect URL after successful sign in (default: '/') - onSignIn (option...

(QB_NEW_EN_HYPHEN)


[grammar] ~99-~99: Use a hyphen to join words.
Context: ...): Custom function to sync token on sign in - onSignOut (optional): Custom func...

(QB_NEW_EN_HYPHEN)


[grammar] ~100-~100: Use a hyphen to join words.
Context: ...tom function to clear auth state on sign out ### Step 2: Configure Router (Built...

(QB_NEW_EN_HYPHEN)


[grammar] ~484-~484: Use a hyphen to join words.
Context: ...terSignOutUrl- Redirect URL after sign out ###` Complete ...

(QB_NEW_EN_HYPHEN)

🔇 Additional comments (5)
docs/core-concepts/authentication/ui-components/react.mdx (1)

1-772: Documentation quality and completeness — LGTM.

The documentation is well-structured, comprehensive, and appropriate for the new @insforge/react package. The examples are clear, the quick-start flow is practical, and the split between built-in auth and custom UI approaches is well-explained. React 19 alignment, router patterns, and TypeScript integration are all correctly presented.

auth/src/components/ErrorCard.tsx (1)

1-6: LGTM! Clean interface definition.

The interface follows TypeScript best practices with appropriate types for a presentational component.

auth/src/pages/ResetPasswordPage.tsx (1)

1-11: LGTM! Clean wrapper following established patterns.

The component correctly wraps the ResetPassword component from @insforge/react and provides error logging consistent with other auth pages in this PR (SignInPage, SignUpPage, etc.).

auth/src/App.tsx (2)

9-15: Excellent use of enum for route paths.

Using AuthRouterPath enum provides type safety and a single source of truth for all auth-related routes. This is a best practice that prevents typos and makes refactoring easier.


17-30: No issues found—all routes properly use the AuthRouterPath enum.

Verification confirms that the codebase consistently uses AuthRouterPath enum values throughout. No hardcoded path strings, non-hyphenated paths, or inconsistencies were found in the source code. The routing structure in auth/src/App.tsx properly implements the enum, and all paths are consistently hyphenated.

Comment thread auth/src/components/Layout.tsx Resolved
@Leo-rq-yu
Leo-rq-yu merged commit 39a2f2a into main Nov 4, 2025
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