[PR #7258] [MERGED] docs(fastify): add session retrieval section #7181

Closed
opened 2026-03-13 13:26:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7258
Author: @nathannewyen
Created: 1/11/2026
Status: Merged
Merged: 2/28/2026
Merged by: @Bekacru

Base: canaryHead: docs/fastify-session-retrieval


📝 Commits (2)

  • cd0057d docs(fastify): add session retrieval section
  • c947ed9 Use fromNodeHeaders helper instead of manual conversion

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/fastify.mdx (+21 -0)

📄 Description

Summary

  • Add "Getting the User Session" section to Fastify integration docs
  • Show how to use auth.api.getSession() with proper header conversion
  • Include reusable helper function example for header conversion

Closes #7107


Summary by cubic

Adds a "Getting the User Session" section to the Fastify integration docs with examples for using auth.api.getSession and converting Fastify request headers to a standard Headers object. Addresses Linear #7107 by clarifying session retrieval in Fastify routes.

Written for commit c947ed94f0. Summary will update on new commits.


🔄 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/7258 **Author:** [@nathannewyen](https://github.com/nathannewyen) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 2/28/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/fastify-session-retrieval` --- ### 📝 Commits (2) - [`cd0057d`](https://github.com/better-auth/better-auth/commit/cd0057d0d5668c80d81cbadee5956605f03dd918) docs(fastify): add session retrieval section - [`c947ed9`](https://github.com/better-auth/better-auth/commit/c947ed94f0db3ede94af67d4aed0f5c6a20c16fa) Use fromNodeHeaders helper instead of manual conversion ### 📊 Changes **1 file changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/fastify.mdx` (+21 -0) </details> ### 📄 Description ## Summary - Add "Getting the User Session" section to Fastify integration docs - Show how to use `auth.api.getSession()` with proper header conversion - Include reusable helper function example for header conversion Closes #7107 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a "Getting the User Session" section to the Fastify integration docs with examples for using auth.api.getSession and converting Fastify request headers to a standard Headers object. Addresses Linear #7107 by clarifying session retrieval in Fastify routes. <sup>Written for commit c947ed94f0db3ede94af67d4aed0f5c6a20c16fa. Summary will update on new commits.</sup> <!-- 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-03-13 13:26:59 -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#7181