Skip to content

Commit edb7625

Browse files
committed
wk:auth:test: add logging for secondaryStorage operations in better-auth
1 parent 1aa0ef2 commit edb7625

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/workers/auth/src/lib/better-auth

apps/workers/auth/src/lib/better-auth/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ export function createAuth(env: CloudflareBindings) {
1717
secondaryStorage: {
1818
get: async (key: string) => {
1919
const value = await env.DEEPCRAWL_AUTH_KV.get(key);
20+
console.log('🚀 ~ secondaryStorage [get] ~ value:', value);
2021
return value;
2122
},
2223
set: async (key: string, value: string, ttl?: number) => {
24+
console.log('🚀 ~ secondaryStorage [set] ~ key:', key);
2325
if (ttl) {
2426
await env.DEEPCRAWL_AUTH_KV.put(key, value, { expirationTtl: ttl });
2527
} else {
2628
await env.DEEPCRAWL_AUTH_KV.put(key, value);
2729
}
2830
},
2931
delete: async (key: string) => {
32+
console.log('🚀 ~ secondaryStorage [delete] ~ key:', key);
3033
await env.DEEPCRAWL_AUTH_KV.delete(key);
3134
},
3235
},

0 commit comments

Comments
 (0)