From 8b18362451dbd3a0cf32bad4f026176fc4ea548d Mon Sep 17 00:00:00 2001 From: Isolated <48399378+meisolated@users.noreply.github.com> Date: Sun, 16 Mar 2025 18:12:19 +0530 Subject: [PATCH] docs: fix Incorrect JSON Handling in secondaryStorage.get example (#1842) --- docs/content/docs/concepts/database.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/docs/concepts/database.mdx b/docs/content/docs/concepts/database.mdx index a8dcc00dd2..7b402f7eca 100644 --- a/docs/content/docs/concepts/database.mdx +++ b/docs/content/docs/concepts/database.mdx @@ -82,7 +82,7 @@ export const auth = betterAuth({ secondaryStorage: { get: async (key) => { const value = await redis.get(key); - return value ? JSON.stringify(value) : null; + return value ? value : null; }, set: async (key, value, ttl) => { if (ttl) await redis.set(key, value, { EX: ttl });