Files
twenty/packages/twenty-server/src/engine/core-modules
Nicolas Rouanne cde96cf526 Fix/validate access token user not found (#8484)
# Description
Closes #7244 

See details about implementation:
https://github.com/twentyhq/twenty/issues/7244#issuecomment-2473845859
and
https://github.com/twentyhq/twenty/issues/7244#issuecomment-2473905514

# Changes
- return a `USER_NOT_FOUND` error instead of `INVALID_INPUT` error
- tweak unit tests to correctly test `AuthExceptionCode`, as it wasn't
properly tested; it was actually a _false positive_. This is because
[`toThrow`](https://jestjs.io/docs/expect#tothrowerror) from jest only
checks the `message`, and not any other method / attributes from the
`Error`. It's a know behaviour and not considered a bug, see
https://github.com/jestjs/jest/issues/13232#issuecomment-1252392845
2024-11-13 18:50:30 +01:00
..
2024-10-22 18:21:00 +02:00
2024-11-07 18:13:22 +01:00
2024-11-07 18:13:22 +01:00
2024-11-12 17:58:36 +01:00
2024-10-22 14:40:18 +00:00
2024-11-13 15:21:40 +01:00