mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
* add InvalidCredentialsError with language-agnostic code and update backend & web logout logic * error.code in API error responses Updated the error handler to serialize responseErr.code as the JSON error field, falling back to responseErr.name when no code is set. * fix(lint): whitespace and missing def * fix(lint): missed one * add InvalidCredentialsError case for bad token Add test verifying that auth middleware throws InvalidCredentialsError with code "invalid_credentials" and correct translated message when the API token is invalid. * fix(test): user fields implicitly required --------- Co-authored-by: Kalista Payne <sabrecat@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| common | ||
| content | ||
| helpers | ||
| migrations | ||
| sanity | ||
| .eslintrc.js | ||
| mocha.opts | ||
| README.md | ||
For information about writing and running tests, see Using Your Local Install to Modify Habitica's Website and API.