Skip to content

[codex] extract authentication packages#167

Merged
b3hr4d merged 46 commits into
mainfrom
codex/extract-auth-packages
Jun 11, 2026
Merged

[codex] extract authentication packages#167
b3hr4d merged 46 commits into
mainfrom
codex/extract-auth-packages

Conversation

@b3hr4d

@b3hr4d b3hr4d commented May 26, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces and documents new authentication packages for the IC Reactor project, refactors authentication-related usage in documentation to use the new AuthenticationManager and related hooks, and updates references and examples throughout the docs for clarity and separation of concerns. It also adds new documentation for the AuthenticationManager class and improves the accuracy of file references in the generated documentation.

Authentication package additions and documentation:

  • Added @ic-reactor/auth and @ic-reactor/auth-react packages to the workspace and documentation, providing Internet Identity authentication and React hooks for authentication, respectively. [1] [2] [3]
  • Added a new documentation page for the AuthenticationManager class, detailing its API, usage, and methods.

Refactoring authentication usage in documentation:

  • Updated all authentication-related code examples in README.md and docs to use AuthenticationManager from @ic-reactor/auth and the new createAuthHooks from @ic-reactor/auth-react, instead of passing ClientManager directly. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated the authentication guide and examples to use IdentityAttributesManager and createIdentityAttributeHooks for OpenID attributes, and clarified direct usage of attribute APIs. [1] [2]

Documentation accuracy and cleanup:

  • Updated file paths and code references in the generated API docs for CallError, CanisterError, and ClientManager to match the new project structure and improve clarity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

b3hr4d added 4 commits May 26, 2026 12:07
…ry integration

- Updated pnpm workspace to include the new Next.js App Router example.
- Created a new example project in `examples/nextjs-app-router` demonstrating the use of `@ic-reactor` features.
- Added necessary configuration files including `package.json`, `next.config.js`, and `postcss.config.js`.
- Implemented authentication and todo list functionality with proper state management.
- Included TypeScript definitions and declarations for the todo canister.
- Set up Tailwind CSS for styling and added global styles.
- Created components for authentication and todo list management.
- Ensured hydration safety by isolating state initialization within client components.
Comment thread examples/nextjs-app-router/src/app/AuthSection.tsx Fixed
Comment thread examples/nextjs-app-router/src/declarations/todo/index.js Fixed
b3hr4d and others added 2 commits May 30, 2026 19:20
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@b3hr4d b3hr4d marked this pull request as ready for review May 31, 2026 15:38
- Updated useActorMutation, useActorQuery, useActorSuspenseQuery, and useActorSuspenseInfiniteQuery hooks to use generic Service and Method types instead of specific Actor types.
- Introduced defineReactor function for streamlined reactor and hook initialization, allowing for shared ClientManager and QueryClient across multiple reactors.
- Added AuthClientLoader and AuthStateStore for improved authentication state management.
- Enhanced type definitions for better clarity and usability across the library.
- Added tests for defineReactor to ensure correct initialization and functionality.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9858a9d511

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread examples/nextjs-app-router/src/app/TokenExplorer.tsx Outdated
b3hr4d added 18 commits May 31, 2026 21:23
…c workflow

- Set node version to 22.22.2 and enable linking of local workspace packages in pnpm workspace.
- Introduced a GitHub Actions workflow to sync example versions after releases, ensuring examples use the latest published versions.
- Added type-checking script for examples to validate against locally built packages.
- Created a new TypeScript environment declaration file for the all-in-one demo example.
- Added titles to various type alias documentation files for better clarity.
- Updated links in documentation to point to the latest commit.
- Improved formatting of type definitions in documentation for consistency.
- Introduced new classes: AuthClientLoader and AuthStateStore, with detailed documentation and examples.
- Added type alias AuthClientConstructor with corresponding documentation.
- Updated @ic-reactor/vite-plugin to version 0.11.1 in multiple examples.
- Refactored backend declarations to use consistent property naming conventions.
- Added generated files for backend services in codegen-in-action and vite-plugin-demo examples.
- Updated package.json files to reflect new dependency versions across examples.
- Improved Vite configuration for icp-reactor-demo and vite-plugin-demo examples.
- Removed obsolete files and ensured proper structure for generated hooks and declarations.
- Add SVG logos for ICP and Vite.
- Create App component with form to greet user via backend canister.
- Implement CSS styles for layout and branding.
- Set up TypeScript declarations and backend service definitions.
- Configure Vite with React and IC Reactor plugin.
- Establish client manager for query handling.
- Add global styles and theme variables for light/dark modes.
…h dynamic method discovery and auto-detection of query types
Comment thread examples/vite-environment-variables/frontend/src/App.tsx Fixed
…r declaration formatting, and fix key serialization in suspense tests
b3hr4d and others added 20 commits June 9, 2026 18:04
…d migrate local environment settings to agentOptions
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@b3hr4d b3hr4d merged commit baa1ad6 into main Jun 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant