From 762c0407bd657834692bcf095b29df4733e7a305 Mon Sep 17 00:00:00 2001 From: Cali93 <32299095+Cali93@users.noreply.github.com> Date: Thu, 13 Jul 2023 10:23:57 +0300 Subject: [PATCH] fix(session-prefix): remove redis prefix --- src/handlers/verify.ts | 1 + src/index.ts | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/handlers/verify.ts b/src/handlers/verify.ts index d074c00..723f376 100644 --- a/src/handlers/verify.ts +++ b/src/handlers/verify.ts @@ -13,6 +13,7 @@ export const verifyAndSignIn = async (req: Request, res: Response) => { const message = new SiweMessage(req.body.message); const fields = await message.validate(req.body.signature); + console.log({ fieldsNonce: fields.nonce, sessionNonce: req.session.nonce }); if (fields.nonce !== req.session.nonce) { res.status(422).json({ message: `Invalid nonce.`, diff --git a/src/index.ts b/src/index.ts index 0d61c80..de9ff69 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,9 +115,6 @@ const limiter = rateLimit({ app.use(limiter); app.get("/health", async function (req, res) { - await redisClient.set("test", "value"); - const test = await redisClient.get("test"); - console.log({ test }); return res.status(200).json({ status: "OK" }); });