authorgravatar for lqff.yt@gmail.comchise <lqff.yt@gmail.com> 2026-10-09 01:04:26+07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-08 11:04:26-07:00
log4daec109cdf8e3e92b392017d7564e735e54f6fd
tree5477f1d2334c170b837a5198d031bd7736357ba6
parenta6ec88f7a716fc421bd22c2484881c44110f9375
signature Signed by PGP key B5690EEEBB952194

fix(server): pairing tokens work on Node versions that cannot bind booleans (#16730)


1 files changed, 1 insertions(+), 1 deletions(-)

apps/server/src/persistence/AuthPairingLinks.ts+1-1
......@@ -172,7 +172,7 @@ export const make = Effect.gen(function* () {
172172 proof_key_thumbprint IS NULL
173173 OR proof_key_thumbprint = ${proofKeyThumbprint}
174174 )
175 AND (${requestedScopes === undefined} OR EXISTS (
175 AND (${requestedScopes === undefined ? 1 : 0} OR EXISTS (
176176 SELECT 1
177177 FROM json_each(${JSON.stringify(requestedScopes ?? [])}) AS requested
178178 WHERE requested.value IN (