Skip to content

Commit

Permalink
fix: debug token value
Browse files Browse the repository at this point in the history
  • Loading branch information
0x73746F66 authored Jun 11, 2024
1 parent c43f50f commit 3701b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/github/install/[installation_id]/[code].js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3701b0a

Please sign in to comment.