feat(36-01): surface isAdmin in /api/auth/me response
This commit is contained in:
@@ -39,6 +39,7 @@ app.get("/me", async (c) => {
|
||||
id: user.id,
|
||||
email: auth.email,
|
||||
createdAt: fullUser?.createdAt?.toISOString() ?? null,
|
||||
isAdmin: fullUser?.isAdmin ?? false,
|
||||
},
|
||||
authenticated: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user