
- auth clients are always shared, cannot be disabled - custom connections are enabled by default, can be disabled - any existing connections can be reconnected regardless of its AppConfig or AppAuthClient states
21 lines
479 B
JavaScript
21 lines
479 B
JavaScript
const getAppConfigMock = (appConfig) => {
|
|
return {
|
|
data: {
|
|
key: appConfig.key,
|
|
useOnlyPredefinedAuthClients: appConfig.useOnlyPredefinedAuthClients,
|
|
disabled: appConfig.disabled,
|
|
createdAt: appConfig.createdAt.getTime(),
|
|
updatedAt: appConfig.updatedAt.getTime(),
|
|
},
|
|
meta: {
|
|
count: 1,
|
|
currentPage: null,
|
|
isArray: false,
|
|
totalPages: null,
|
|
type: 'AppConfig',
|
|
},
|
|
};
|
|
};
|
|
|
|
export default getAppConfigMock;
|