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;