Conversation
|
@hyoban is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
better-auth
@better-auth/cli
@better-auth/core
@better-auth/expo
@better-auth/passkey
@better-auth/scim
@better-auth/sso
@better-auth/stripe
@better-auth/telemetry
commit: |
There was a problem hiding this comment.
Pull request overview
This PR fixes a TypeScript type inference error (TS2742) in the two-factor authentication plugin's client file by updating the import path to follow the established codebase convention. The error occurred because TypeScript couldn't create a portable type reference through the complex import path.
- Simplified the import path from
"../../plugins/two-factor"to"."for thetwoFactortype import - This aligns with the pattern used consistently across all other plugin client files in the codebase
- Resolves the TypeScript TS2742 error about non-portable type inference
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
65b1d6d to
4b0021b
Compare
|
✅ Successfully cherry-picked to |
|
@Bekacru This error is still ocurring just with a different named file. We need to export the necessary types to make them accessible to the consumer
This is also occurs for some other client plugins |
Summary by cubic
Fixed the two-factor client to import the plugin type from "." instead of "../../plugins/two-factor", resolving the ts(2742) portability error. Also switched additional-fields client type imports to "@better-auth/core" to avoid non-portable inferred types.
Written for commit 4b0021b. Summary will update automatically on new commits.