From b7c2d6a40e35229b761260c432822d2bd0467e6c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Dec 2024 23:46:11 +0000 Subject: [PATCH] auto: format code --- packages/openauth/src/adapter/code.ts | 6 +++++- packages/openauth/src/random.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/openauth/src/adapter/code.ts b/packages/openauth/src/adapter/code.ts index c07e499..34996e2 100644 --- a/packages/openauth/src/adapter/code.ts +++ b/packages/openauth/src/adapter/code.ts @@ -92,7 +92,11 @@ export function CodeAdapter< ) { const fd = await c.req.formData() const compare = fd.get("code")?.toString() - if (!state.code || !compare || !timingSafeCompare(state.code, compare)) { + if ( + !state.code || + !compare || + !timingSafeCompare(state.code, compare) + ) { return transition( c, { diff --git a/packages/openauth/src/random.ts b/packages/openauth/src/random.ts index 27c08b2..c4a1b7d 100644 --- a/packages/openauth/src/random.ts +++ b/packages/openauth/src/random.ts @@ -21,4 +21,4 @@ export function timingSafeCompare(a: string, b: string): boolean { return false } return timingSafeEqual(Buffer.from(a), Buffer.from(b)) -} \ No newline at end of file +}