[PR #163] [MERGED] docs: add middleware and cors guides for hono #11381

Closed
opened 2026-04-13 07:44:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/163
Author: @NoHaxito
Created: 10/13/2024
Status: Merged
Merged: 10/13/2024
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (2)

  • 5532799 docs: add middleware and cors guides for hono
  • fd6ba3f fixed typo

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/hono.mdx (+78 -0)

📄 Description

  • added guide for configuring a middleware to access user and session object in all routes to avoid using the auth.api.getSession everytime (this works with all type of validations also) in hono
  • added guide on how to correctly configure CORS in Hono.

🔄 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/163 **Author:** [@NoHaxito](https://github.com/NoHaxito) **Created:** 10/13/2024 **Status:** ✅ Merged **Merged:** 10/13/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`5532799`](https://github.com/better-auth/better-auth/commit/55327998f0d15f34684fcea1ed26bb9376582dd3) docs: add middleware and cors guides for hono - [`fd6ba3f`](https://github.com/better-auth/better-auth/commit/fd6ba3f7bd9b51a499f39dd152afeb59afc5f072) fixed typo ### 📊 Changes **1 file changed** (+78 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/hono.mdx` (+78 -0) </details> ### 📄 Description - added guide for configuring a middleware to access `user` and `session` object in all routes to avoid using the `auth.api.getSession` everytime (this works with all type of validations also) in hono - added guide on how to correctly configure CORS in Hono. --- <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-13 07:44:08 -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#11381