Improve error messages for JWT verification errors #3600
Labels
difficulty: beginner
Pure Haskell task
hygiene
cleanup or refactoring
messages
user-facing error/informative messages
In #3598 I added a new IO test showing how many JWT errors we currently expose by just showing internal errors via
show
. Those are not very user friendly:postgrest/test/io/test_io.py
Lines 78 to 128 in 465170c
For at least a few of them we should improve the error message and maybe differentiate them in https://postgrest.org/en/v12/references/errors.html#group-3-jwt? I.e. give them our own PGRST error code.
The text was updated successfully, but these errors were encountered: