From 3701b0af7f52e4a2930da9f0e6f89bff15d338d9 Mon Sep 17 00:00:00 2001 From: Stof <93355168+0x73746F66@users.noreply.github.com> Date: Wed, 12 Jun 2024 07:48:41 +1000 Subject: [PATCH] fix: debug token value --- functions/github/install/[installation_id]/[code].js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/github/install/[installation_id]/[code].js b/functions/github/install/[installation_id]/[code].js index 8db3266..0566805 100644 --- a/functions/github/install/[installation_id]/[code].js +++ b/functions/github/install/[installation_id]/[code].js @@ -11,7 +11,9 @@ export async function onRequestGet(context) { if (!token) { return Response.json({ 'err': 'Forbidden' }) } - const session = await env.d1db.prepare("SELECT memberEmail, expiry FROM sessions WHERE kid = ?") + console.log('token', token) + const session = await + env.d1db.prepare("SELECT memberEmail, expiry FROM sessions WHERE kid = ?") .bind(token) .first() console.log('session', session)