## 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
36 lines
892 B
JavaScript
36 lines
892 B
JavaScript
module.exports = {
|
|
schema:
|
|
(process.env.REACT_APP_SERVER_BASE_URL ?? 'http://localhost:3000') +
|
|
'/graphql',
|
|
documents: [
|
|
'!./src/modules/databases/**',
|
|
'!./src/modules/object-metadata/**',
|
|
'!./src/modules/object-record/**',
|
|
'!./src/modules/settings/serverless-functions/**',
|
|
'./src/modules/**/*.tsx',
|
|
'./src/modules/**/*.ts',
|
|
'!./src/**/*.test.tsx',
|
|
'!./src/**/__mocks__/*.ts',
|
|
'!./src/modules/users/graphql/queries/getCurrentUserAndViews.ts',
|
|
],
|
|
overwrite: true,
|
|
generates: {
|
|
'./src/generated/graphql.tsx': {
|
|
plugins: [
|
|
'typescript',
|
|
'typescript-operations',
|
|
'typescript-react-apollo',
|
|
],
|
|
config: {
|
|
skipTypename: false,
|
|
withHooks: true,
|
|
withHOC: false,
|
|
withComponent: false,
|
|
scalars: {
|
|
DateTime: 'string',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|