diff --git a/src/server/api/endpoints/admin/show-user.ts b/src/server/api/endpoints/admin/show-user.ts index 81a311b725..ea4df141f3 100644 --- a/src/server/api/endpoints/admin/show-user.ts +++ b/src/server/api/endpoints/admin/show-user.ts @@ -35,5 +35,8 @@ export default define(meta, async (ps, me) => { throw new Error('cannot show info of admin'); } - return user; + return { + ...user, + token: user.token != null ? '' : user.token, + }; });