Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

fix: update secretMiddleware to use 'code' query parameter instead of 'secret'

yoginth.com b7dcc0db 5b6c350c

verified
+2 -2
+2 -2
apps/api/src/middlewares/secretMiddleware.ts
··· 1 1 import type { Context, Next } from "hono"; 2 2 3 3 const secretMiddleware = async (c: Context, next: Next) => { 4 - const secret = c.req.query("secret"); 4 + const code = c.req.query("code"); 5 5 6 - if (secret !== process.env.SHARED_SECRET) { 6 + if (code !== process.env.SHARED_SECRET) { 7 7 return c.body("Unauthorized", 401); 8 8 } 9 9