[PR #1359] [MERGED] fix(docs) session seconday storage value redis example #20675

Closed
opened 2026-04-15 19:51:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1359
Author: @zohaibakber
Created: 2/5/2025
Status: Merged
Merged: 2/24/2025
Merged by: @Bekacru

Base: mainHead: patch-docs


📝 Commits (1)

  • 9b01cf9 fix(docs) session seconday storage value for redis

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/database.mdx (+1 -1)

📄 Description

When using secondary storage, in this case redis the expected session value should be should be proper json but this example doesnt cover that hence getting this error whenever session is used.

ERROR [Better Auth]: INTERNAL_SERVER_ERROR SyntaxError: "[object Object]" is not valid JSON


🔄 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/1359 **Author:** [@zohaibakber](https://github.com/zohaibakber) **Created:** 2/5/2025 **Status:** ✅ Merged **Merged:** 2/24/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-docs` --- ### 📝 Commits (1) - [`9b01cf9`](https://github.com/better-auth/better-auth/commit/9b01cf936a3d51d361adb77f7e55f8fa710b7486) fix(docs) session seconday storage value for redis ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+1 -1) </details> ### 📄 Description When using secondary storage, in this case redis the expected session value should be should be proper json but this example doesnt cover that hence getting this error whenever session is used. >ERROR [Better Auth]: INTERNAL_SERVER_ERROR SyntaxError: "[object Object]" is not valid JSON --- <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 19:51:30 -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#20675