jwtError should always return an object for errors