Closed
Description
type KeyAuthValidator func(string, echo.Context) (bool, error)
- token not found -> 400
- validator return false -> 401
- validator return error -> 500, or just return it to center error handler, it is 401 now
- validator return true -> ok, next
Now I can't throw a ServerError when validate tokens.