rodekruis / IBF-system

Tools required to trigger, manage and execute the Red Cross Early Action Protocols for natural disasters.
https://ibf.510.global
Apache License 2.0
12 stars 15 forks source link

[BUG] Return 401 instead of 500 when jwt is expired #1514

Open arsforza opened 1 month ago

arsforza commented 1 month ago

Who notified us about the bug?

@jannisvisser

Describe the bug

When jwt is expired, we get a 500 error when resetting/mocking

Expected behavior

A 401 error should be returned

Additional context

@jannisvisser: Solve this the next time it's encountered, so that I can get the specific error message then.

arsforza commented 3 weeks ago

Not a production bug, but useful to fix for devs