We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa0ef2 commit edb7625Copy full SHA for edb7625
1 file changed
apps/workers/auth/src/lib/better-auth/index.tsx
@@ -17,16 +17,19 @@ export function createAuth(env: CloudflareBindings) {
17
secondaryStorage: {
18
get: async (key: string) => {
19
const value = await env.DEEPCRAWL_AUTH_KV.get(key);
20
+ console.log('🚀 ~ secondaryStorage [get] ~ value:', value);
21
return value;
22
},
23
set: async (key: string, value: string, ttl?: number) => {
24
+ console.log('🚀 ~ secondaryStorage [set] ~ key:', key);
25
if (ttl) {
26
await env.DEEPCRAWL_AUTH_KV.put(key, value, { expirationTtl: ttl });
27
} else {
28
await env.DEEPCRAWL_AUTH_KV.put(key, value);
29
}
30
31
delete: async (key: string) => {
32
+ console.log('🚀 ~ secondaryStorage [delete] ~ key:', key);
33
await env.DEEPCRAWL_AUTH_KV.delete(key);
34
35
0 commit comments