diff --git a/index.js b/index.js index f4e368b..77a2f19 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,8 @@ fastify.post('/login', async (request, reply) => { success: true, user: { uid: res.authUser.uid, - givenName: res.authUser.givenName + givenName: res.authUser.givenName, + isAdmin: AdminUsersUid.contains(res.authUser.uid) }, token: UsersToken[res.authUser.uid].token }