Skip to content

feat(nuxt-better-auth): optional app session enrich hook#141

Merged
onmax merged 3 commits intomainfrom
feat/138-session-enrich-hook
Feb 15, 2026
Merged

feat(nuxt-better-auth): optional app session enrich hook#141
onmax merged 3 commits intomainfrom
feat/138-session-enrich-hook

Conversation

@onmax
Copy link
Collaborator

@onmax onmax commented Feb 15, 2026

Summary

  • add optional appSession.enrich to defineServerAuth
  • wire enrichment through Better Auth custom-session plugin in module runtime
  • merge enrichment as partial user / session updates while preserving default shape
  • guard against conflicting manual custom-session plugin configuration
  • document usage and types
  • add tests for plugin injection, default behavior, and conflict handling

Closes #138

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 15, 2026

Open in StackBlitz

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

commit: 2997752

@onmax onmax merged commit 078aa5e into main Feb 15, 2026
3 checks passed
@onmax onmax deleted the feat/138-session-enrich-hook branch February 15, 2026 09:49
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.

feat(nuxt-better-auth): add optional server session projection/enrichment hook

1 participant