[PR #3366] [MERGED] Update hono.mdx sessionToken attributes param #30387

Closed
opened 2026-04-17 21:30:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3366
Author: @ahmadaccino
Created: 7/14/2025
Status: Merged
Merged: 7/14/2025
Merged by: @Bekacru

Base: mainHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 docs/content/docs/integrations/hono.mdx (+5 -3)

📄 Description

i get this once i follow the sessionToken param according to the hono docs:

Object literal may only specify known properties, and 'sameSite' does not exist in type '{ name?: string | undefined; attributes?: CookieOptions | undefined; }'. (ts 2353)

before:
image

after:
image

System: Ubuntu/Linux
Package version: ^1.2.12


Summary by cubic

Fixed the sessionToken example in hono.mdx to place cookie attributes inside the correct attributes object, matching the expected type and preventing TypeScript errors.


🔄 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/3366 **Author:** [@ahmadaccino](https://github.com/ahmadaccino) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`e44e810`](https://github.com/better-auth/better-auth/commit/e44e81085e5dac94dd493dda7cd5bd6ee4687255) Update hono.mdx ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/hono.mdx` (+5 -3) </details> ### 📄 Description i get this once i follow the sessionToken param according to the hono docs: ```bash Object literal may only specify known properties, and 'sameSite' does not exist in type '{ name?: string | undefined; attributes?: CookieOptions | undefined; }'. (ts 2353) ``` before: <img width="1563" height="592" alt="image" src="https://github.com/user-attachments/assets/2e3cc296-fc10-49e2-9a31-5e486f23793c" /> after: <img width="1563" height="592" alt="image" src="https://github.com/user-attachments/assets/4a50ea8c-f82b-470a-a8a8-f7349df04e00" /> System: Ubuntu/Linux Package version: ^1.2.12 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the sessionToken example in hono.mdx to place cookie attributes inside the correct attributes object, matching the expected type and preventing TypeScript errors. <!-- 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-17 21:30:00 -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#30387