fix: Unneeded object keys in API response

This commit is contained in:
Tom Moor
2021-04-03 17:18:26 -07:00
parent 8cbc873451
commit 3ffa21b07f

View File

@ -24,7 +24,12 @@ function filterProviders(team) {
!team ||
find(team.authenticationProviders, { name: provider.id, enabled: true })
);
});
})
.map((provider) => ({
id: provider.id,
name: provider.name,
authUrl: provider.authUrl,
}));
}
router.post("auth.config", async (ctx) => {