
- 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
27 lines
582 B
JavaScript
27 lines
582 B
JavaScript
const resetConnectionMock = (connection) => {
|
|
const data = {
|
|
id: connection.id,
|
|
key: connection.key,
|
|
verified: connection.verified,
|
|
appAuthClientId: connection.appAuthClientId,
|
|
formattedData: {
|
|
screenName: connection.formattedData.screenName,
|
|
},
|
|
createdAt: connection.createdAt.getTime(),
|
|
updatedAt: connection.updatedAt.getTime(),
|
|
};
|
|
|
|
return {
|
|
data: data,
|
|
meta: {
|
|
count: 1,
|
|
currentPage: null,
|
|
isArray: false,
|
|
totalPages: null,
|
|
type: 'Connection',
|
|
},
|
|
};
|
|
};
|
|
|
|
export default resetConnectionMock;
|