Skip to content

fix: update AuthInstance type to use AuthOptions for better type inference#193

Merged
onmax merged 3 commits intonuxt-modules:mainfrom
amaury-tobias:fix-runtime-types-on-server-composables
Feb 25, 2026
Merged

fix: update AuthInstance type to use AuthOptions for better type inference#193
onmax merged 3 commits intonuxt-modules:mainfrom
amaury-tobias:fix-runtime-types-on-server-composables

Conversation

@amaury-tobias
Copy link
Contributor

@amaury-tobias amaury-tobias commented Feb 25, 2026

🔗 Linked issue

Closes #192

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

  • Updates server AuthInstance typing to infer from AuthOptions so plugin API types are preserved.
  • Adds regression test coverage to verify serverAuth(event) exposes plugin API methods (including signInUsername) with correct typing.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/nuxt-modules/better-auth/@onmax/nuxt-better-auth@193

commit: d38b40a

@onmax
Copy link
Collaborator

onmax commented Feb 25, 2026

Thank you!

@onmax onmax merged commit 7e50c8a into nuxt-modules:main Feb 25, 2026
3 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.

serverAuth incorrect return type

2 participants