feat(36-01): surface isAdmin in /api/auth/me response

This commit is contained in:
2026-04-19 20:47:12 +02:00
parent 34c7d27ee5
commit 18883fb9f0

View File

@@ -39,6 +39,7 @@ app.get("/me", async (c) => {
id: user.id, id: user.id,
email: auth.email, email: auth.email,
createdAt: fullUser?.createdAt?.toISOString() ?? null, createdAt: fullUser?.createdAt?.toISOString() ?? null,
isAdmin: fullUser?.isAdmin ?? false,
}, },
authenticated: true, authenticated: true,
}); });