## Summary - [x] Remove defaultWorkspace in user - [x] Remove all occurrence of defaultWorkspace and defaultWorkspaceId - [x] Improve activate workspace flow - [x] Improve security on social login - [x] Add `ImpersonateGuard` - [x] Allow to use impersonation with couple `User/Workspace` - [x] Prevent unexpected reload on activate workspace - [x] Scope login token with workspaceId Fix https://github.com/twentyhq/twenty/issues/9033#event-15714863042
22 lines
566 B
JavaScript
22 lines
566 B
JavaScript
module.exports = {
|
|
schema:
|
|
(process.env.REACT_APP_SERVER_BASE_URL ?? 'http://localhost:3000') +
|
|
'/metadata',
|
|
documents: [
|
|
'./src/modules/databases/graphql/**/*.ts',
|
|
'./src/modules/object-metadata/graphql/*.ts',
|
|
'./src/modules/settings/serverless-functions/graphql/**/*.ts',
|
|
'./src/modules/object-record/graphql/*.tsx',
|
|
'./src/modules/metadata/graphql/*.ts',
|
|
],
|
|
overwrite: true,
|
|
generates: {
|
|
'./src/generated-metadata/': {
|
|
preset: 'client',
|
|
presetConfig: {
|
|
fragmentMasking: false,
|
|
},
|
|
},
|
|
},
|
|
};
|