postgrest icon indicating copy to clipboard operation
postgrest copied to clipboard

Improve error messages for JWT verification errors

Open wolfgangwalther opened this issue 1 year ago • 1 comments

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:

https://github.com/PostgREST/postgrest/blob/465170c7d6c51dace3faf68fbb4040353d5571c0/test/io/test_io.py#L78-L128

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.

wolfgangwalther avatar Jun 17 '24 06:06 wolfgangwalther