[PR #3910] [MERGED] docs: add callout to populate event.locals.user/session in handlers #21980

Closed
opened 2026-04-15 20:43:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3910
Author: @Kinfe123
Created: 8/10/2025
Status: Merged
Merged: 8/11/2025
Merged by: @Bekacru

Base: canaryHead: docs/sveltekit-event-locals-session


📝 Commits (3)

📊 Changes

1 file changed (+25 additions, -0 deletions)

View changed files

📝 docs/content/docs/integrations/svelte-kit.mdx (+25 -0)

📄 Description

Summary by cubic

Added documentation explaining how to manually set event.locals.user and event.locals.session in the SvelteKit handle hook when using Better Auth.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3910 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/10/2025 **Status:** ✅ Merged **Merged:** 8/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/sveltekit-event-locals-session` --- ### 📝 Commits (3) - [`9f920bd`](https://github.com/better-auth/better-auth/commit/9f920bdd9c2d20a5ba732fc559667e76e0c587e4) docs: add callout to set event.locals.user/session in handle - [`ecfa447`](https://github.com/better-auth/better-auth/commit/ecfa447b4dd483ce228bb886b936131dd5efe8ad) update - [`9c3f286`](https://github.com/better-auth/better-auth/commit/9c3f286f6bf1f887186e07c136d78d5806040203) docs ### 📊 Changes **1 file changed** (+25 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/svelte-kit.mdx` (+25 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added documentation explaining how to manually set event.locals.user and event.locals.session in the SvelteKit handle hook when using Better Auth. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:43:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#21980