Skip to content

Commit

Permalink
fix(session-prefix): remove redis prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 committed Jul 13, 2023
1 parent f738dce commit 762c040
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/handlers/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
});

Expand Down

0 comments on commit 762c040

Please sign in to comment.