Skip to content

fix(better-auth): import User/Session types from better-auth#1107

Merged
jycouet merged 1 commit into
mainfrom
sv-add-better-auth-generates-wrong-import-better-a
May 31, 2026
Merged

fix(better-auth): import User/Session types from better-auth#1107
jycouet merged 1 commit into
mainfrom
sv-add-better-auth-generates-wrong-import-better-a

Conversation

@jycouet
Copy link
Copy Markdown
Contributor

@jycouet jycouet commented May 29, 2026

Closes #1099

Description

The better-auth/minimal entry point only exports betterAuth/BetterAuthOptions, not User/Session. Those types now resolve from the main better-auth entry. The runtime betterAuth import stays on /minimal (type-only change, no bundle/dependency impact).

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

🦋 Changeset detected

Latest commit: 26fd74a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jycouet jycouet merged commit 650ddfa into main May 31, 2026
5 of 6 checks passed
@jycouet jycouet deleted the sv-add-better-auth-generates-wrong-import-better-a branch May 31, 2026 14:00
@github-actions github-actions Bot mentioned this pull request May 31, 2026
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.

'sv add better-auth' generates wrong import: better-auth/minimal does not export User / Session

1 participant