[GH-ISSUE #1057] Using openapi plugin with declaration: true leads to type error #25893

Closed
opened 2026-04-17 16:12:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Scooter1337 on GitHub (Dec 28, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1057

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Set declaration to
true in tsconfig.json, use openAPI plugin.
S

Current vs. Expected behavior

No error

What version of Better Auth are you using?

1.1.4

Provide environment information

MacOS Sequoia 15.2
Typescript 5.7.2
Bun 1.1.42

Which area(s) are affected? (Select all that apply)

Types

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
  plugins: [openAPI()]
});

Additional context

No response

Originally created by @Scooter1337 on GitHub (Dec 28, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1057 ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce Set declaration to true in tsconfig.json, use openAPI plugin. <img width="607" alt="S" src="https://github.com/user-attachments/assets/0760af76-7a01-4095-8066-efcf65d421fb" /> ### Current vs. Expected behavior No error ### What version of Better Auth are you using? 1.1.4 ### Provide environment information ```bash MacOS Sequoia 15.2 Typescript 5.7.2 Bun 1.1.42 ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, plugins: [openAPI()] }); ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-17 16:12:24 -05:00
Author
Owner

@abrahimzaman360 commented on GitHub (Jan 2, 2025):

White Screen on My Side

<!-- gh-comment-id:2567691462 --> @abrahimzaman360 commented on GitHub (Jan 2, 2025): White Screen on My Side
Author
Owner

@Scooter1337 commented on GitHub (Jan 2, 2025):

Btw by editing the .d.ts files and exporting Path from the openapi plugin out to the user this error goes away. Easy fix @Bekacru

<!-- gh-comment-id:2567724669 --> @Scooter1337 commented on GitHub (Jan 2, 2025): Btw by editing the .d.ts files and exporting Path from the openapi plugin out to the user this error goes away. Easy fix @Bekacru
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25893