feat: Implement new get auth clients api endpoint

This commit is contained in:
Faruk AYDIN
2024-03-26 21:15:48 +01:00
parent d21888c047
commit 6dc54ecabc
5 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
const getAppAuthClientsMock = (appAuthClients) => {
return {
data: appAuthClients.map((appAuthClient) => ({
appConfigId: appAuthClient.appConfigId,
name: appAuthClient.name,
id: appAuthClient.id,
active: appAuthClient.active,
})),
meta: {
count: appAuthClients.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'AppAuthClient',
},
};
};
export default getAppAuthClientsMock;