From f9afbd017c6c4a12e829019e05d279e19c0bccab Mon Sep 17 00:00:00 2001 From: adueck Date: Tue, 26 Nov 2024 17:11:36 +0500 Subject: [PATCH] m --- new-functions/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-functions/src/index.ts b/new-functions/src/index.ts index bb95b28..f7a042b 100644 --- a/new-functions/src/index.ts +++ b/new-functions/src/index.ts @@ -11,7 +11,7 @@ app.get("/", (c) => { }); app.get("/wa", authMiddleware, async (c) => { - return c.json({ user: c.var.user }); + return c.json({ name: c.var.user?.name, admin: c.var.user?.admin }); }); export default app;