mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 10:26:49 -05:00
docs: fix Incorrect JSON Handling in secondaryStorage.get example (#1842)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user