Ghost/ghost/members-api/test
Naz 02a0fd5a32 Fixed source attribution for staff token API requests
closes https://github.com/TryGhost/Toolbox/issues/386

- When the API request was made using staff token the source attribution was "user" instead of "api". Misattribution caused ripple effects in  limit service.
- The fix also adds a new combination of data available on the  `req` object - both `user` and `api_key` can be present when the request is done using a staff (user) token. Having both pieces of data on the request object gives more context for business logic, did not find a good reason to keep it "pure" with either `api_key` or `user` property.
2022-08-23 14:38:46 +08:00
..
unit/lib Fixed source attribution for staff token API requests 2022-08-23 14:38:46 +08:00
utils Added default test dir and eslintrc 2019-05-07 17:35:17 +02:00
.eslintrc.js Updated Eslint ECMAScript compatibility to 2022 2022-08-09 15:51:40 +02:00
hello.test.js Added default test dir and eslintrc 2019-05-07 17:35:17 +02:00