Skip to content

chore: re-export necessary types in client plugins#6230

Merged
himself65 merged 7 commits intobetter-auth:canaryfrom
jslno:chore/re-export-two-factor
Nov 24, 2025
Merged

chore: re-export necessary types in client plugins#6230
himself65 merged 7 commits intobetter-auth:canaryfrom
jslno:chore/re-export-two-factor

Conversation

@jslno
Copy link
Copy Markdown
Contributor

@jslno jslno commented Nov 23, 2025

Fixes: #6227

Copilot AI review requested due to automatic review settings November 23, 2025 12:28
@vercel
Copy link
Copy Markdown

vercel bot commented Nov 23, 2025

@jslno is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 23, 2025

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@6230

@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@6230

@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@6230

@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@6230

@better-auth/passkey

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/passkey@6230

@better-auth/scim

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/scim@6230

@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@6230

@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@6230

@better-auth/telemetry

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/telemetry@6230

commit: 9145da7

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a type-only re-export of the two-factor plugin types in the client plugins index file. This makes two-factor-related TypeScript types (such as TwoFactorOptions, UserWithTwoFactor, TwoFactorTable, and error codes) available for type inference when using Better Auth client plugins, following the same pattern used for other necessary re-exports in the codebase.

Key Changes

  • Added export type * from "../../plugins/two-factor"; to the "Necessary re-exports" section of the client plugins index

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

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@jslno jslno changed the title chore: re-export two-factor types in client plugins chore: re-export necessary types in client plugins Nov 23, 2025
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 11 files (reviewed changes from recent commits).

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="packages/better-auth/src/plugins/admin/client.ts">

<violation number="1" location="packages/better-auth/src/plugins/admin/client.ts:95">
Changing the `./access` re-export to `export type *` drops all runtime helpers (defaultStatements/adminAc/userAc/etc.) that this module previously exposed, breaking consumers that import them from the admin client.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

@himself65 himself65 merged commit 41af253 into better-auth:canary Nov 24, 2025
9 of 12 checks passed
@jslno jslno deleted the chore/re-export-two-factor branch November 24, 2025 16:29
@better-auth better-auth locked as resolved and limited conversation to collaborators Apr 1, 2026
@bytaesu bytaesu added the locked Locked conversations after being closed for 7 days label Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants