Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/validate access token user not found (#8484)
# Description Closes #7244 See details about implementation: #7244 (comment) and #7244 (comment) # 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 jestjs/jest#13232 (comment)
- Loading branch information