my website at ewancroft.uk
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: remove temp token logging

+1 -12
+1 -12
src/routes/webhook/+server.ts
··· 22 22 hasAppPassword: !!env.ATPROTO_APP_PASSWORD 23 23 }); 24 24 25 - // TEMP: log raw token to identify Ko-fi test token 26 - try { 27 - const cloned = request.clone(); 28 - const form = await cloned.formData(); 29 - const raw = form.get('data'); 30 - if (typeof raw === 'string') { 31 - const parsed = JSON.parse(raw); 32 - console.log('[webhook] raw verification_token', parsed.verification_token); 33 - } 34 - } catch { /* ignore */ } 35 - 36 25 let payload; 37 26 try { 38 27 payload = await parseWebhook(request); ··· 45 34 }); 46 35 } catch (err) { 47 36 if (err instanceof WebhookError) { 48 - console.error('[webhook] WebhookError', { status: err.status, message: err.message, receivedToken: payload?.verification_token }); 37 + console.error('[webhook] WebhookError', { status: err.status, message: err.message }); 49 38 return json({ error: err.message }, { status: err.status }); 50 39 } 51 40 console.error('[webhook] unexpected parse error', err);