Building a modern alternative to Salesforce, powered by the community.
Go to file
Weiko b1aa115d28
Fix auth exceptions (#6590)
A regression has been introduced in
https://github.com/twentyhq/twenty/pull/6459/files#diff-0a06bf2b624f77f1b7ded0fcc4ce266d1a56f4329222b46d1cf4d76a18000c97L505
where 401 have been changed to 403. However the renew token logic on the
FE expects a 401, see here
https://github.com/twentyhq/twenty/blob/main/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts#L100

I've also introduced a fix with a proxy class in
GraphQLHydrateRequestFromTokenMiddleware since this middleware calls
validateToken from tokenService which are never converted back to
graphqlErrors so handleExceptionAndConvertToGraphQLError below will
receive an AuthException and will send capture it and return it as a 500

both issues have been fixed and should resolve the renewToken logic 

## Test
tested locally by playing with token expiration dates in the env

<img width="635" alt="Screenshot 2024-08-09 at 12 47 05"
src="https://github.com/user-attachments/assets/e93d5741-29b7-4699-b882-ee8f4fee6e6e">
2024-08-09 14:09:26 +02:00
.github 6404: prevent contributors from opening a PR on a main branch (#6419) 2024-07-26 08:23:58 +02:00
.nx chore: upgrade Nx to v18.1.3 (#4706) 2024-04-01 13:16:50 +02:00
.vscode feat: add new ACTOR field type and createdBy standard fields (#6324) 2024-08-03 15:43:31 +02:00
.yarn/releases removed @blocknote/core from dependencies (#6580) 2024-08-08 15:44:09 +02:00
packages Fix auth exceptions (#6590) 2024-08-09 14:09:26 +02:00
tools/eslint-rules feat: add eslint rule for enforcing WorkspaceService naming convention (#6308) 2024-07-19 19:17:57 +02:00
.dockerignore feat: merge front and server dockerfiles and optimize build (#4589) 2024-03-21 19:22:21 +01:00
.eslintrc.cjs 5421 box shadow on frozen header and first column (#6130) 2024-07-05 18:30:59 +02:00
.eslintrc.react.cjs Create ESLint rule to discourage usage of navigate() and prefer Link (#5642) 2024-06-04 17:04:57 +02:00
.gitignore Switched current Sort Button with same used for filters and options ones (#5764) 2024-06-07 11:23:33 +02:00
.nvmrc Embrace nx monorepo structure with root package.json (#3255) 2024-01-05 14:59:58 +01:00
.prettierignore POC: chore: use Nx workspace lint rules (#3163) 2024-01-03 23:07:25 +01:00
.prettierrc POC: chore: use Nx workspace lint rules (#3163) 2024-01-03 23:07:25 +01:00
.vale.ini Fix vale ci (#3353) 2024-01-10 17:05:23 +01:00
.yarnrc.yml removed @blocknote/core from dependencies (#6580) 2024-08-08 15:44:09 +02:00
install.sh docs: replace 'he' with 'they' (#5562) 2024-05-24 18:03:55 +02:00
jest.config.js POC: chore: use Nx workspace lint rules (#3163) 2024-01-03 23:07:25 +01:00
jest.preset.js POC: chore: use Nx workspace lint rules (#3163) 2024-01-03 23:07:25 +01:00
LICENSE Update LICENSE (#714) 2023-07-17 10:08:37 +02:00
Makefile Re-add docker-compose up command 2024-01-13 11:02:00 +01:00
nx Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
nx.json Fix performance tests (#6245) 2024-07-13 22:30:11 +02:00
package.json Fix frontend tests (#6585) 2024-08-09 08:38:01 +02:00
README.md Temporary fix README (#5814) 2024-06-11 10:18:08 +02:00
render.yaml Update render deploy configuration (#6167) 2024-07-09 00:27:07 +02:00
tsconfig.base.json refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui (#4946) 2024-04-15 12:05:06 +02:00
yarn.lock Fix frontend tests (#6585) 2024-08-09 08:38:01 +02:00


Twenty logo

The #1 Open-Source CRM

Tailored to your unique business needs

🌐 Website · 📚 Documentation · Discord · Figma


Companies view


Weve spent thousands of hours grappling with traditional CRMs like Pipedrive and Salesforce to align them with our business needs, only to end up frustrated — customizations are complex and the closed ecosystems of these platforms can feel restrictive.

We felt the need for a CRM platform that empowers rather than constrains. We believe the next great CRM will come from the open-source community. Weve packed Twenty with powerful features to give you full control and help you run your business efficiently.


Demo

Go to demo.twenty.com and login with the following credentials:

email: noah@demo.dev
password: Applecar2025

See also:
🚀 Self-hosting
🖥️ Local Setup

Why Choose Twenty?

We understand that the CRM landscape is vast. So why should you choose us?

⛓️ Full control, Full Freedom: Contribute, self-host, fork. Break free from vendor lock-in and join us in shaping the open future of CRM.

📊 Data, Your Way: The days when the role of CRM platforms was to shift manual data entries to a database are over. Now, the data is already there. CRM 2.0 should be built around your data, allowing you to access and visualize any existing sources, not forcing you to retrofit your data into predefined objects on a remote cloud.

🎨 Effortlessly Intuitive: We set out to create something that we ourselves would always enjoy using. The main application draws inspiration from Notion, a tool known for its user-friendly interface and customization capabilities.


What You Can Do With Twenty

We're currently in the development phase of Twenty's alpha version.

Please feel free to flag any specific need you have need by creating an issue.

Below are some features we have implemented to date:

Add, filter, sort, edit, and track customers:

Companies view

Create one or several opportunities for each company:

Companies view

Track deals effortlessly with the email integration:

Companies view

Tailor your data model to meet business needs:

Companies view

See rich notes displayed in a timeline:

Companies view

Create tasks on records

Companies view

Companies view

Connect your CRM to all your tools through our APIs and Webhooks.

Companies view


What's In Store

Heres what you can look forward to:

Frequent updates: Were shipping fast! Expect regular updates and new features that enhance your experience.

🔗 Extensibility: Were putting the power in your hands. Soon, youll have the tools to extend and customize Twenty with plugins and more.


Join the Community