- 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
12 lines
325 B
JavaScript
12 lines
325 B
JavaScript
const appConfigSerializer = (appConfig) => {
|
|
return {
|
|
key: appConfig.key,
|
|
useOnlyPredefinedAuthClients: appConfig.useOnlyPredefinedAuthClients,
|
|
disabled: appConfig.disabled,
|
|
createdAt: appConfig.createdAt.getTime(),
|
|
updatedAt: appConfig.updatedAt.getTime(),
|
|
};
|
|
};
|
|
|
|
export default appConfigSerializer;
|