# Why validate JWT tokens?

**URL:** <https://forums.eveonline.com/t/why-validate-jwt-tokens/393527>\
**Category:** Third Party Developers\
**Tags:** api, esi\
**Created:** [January 28, 2023, 10:31am UTC](https://forums.eveonline.com/t/why-validate-jwt-tokens/393527 "2023-01-28T10:31:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Efirem](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/efirem/32/368933_2.png) [@Efirem](https://forums.eveonline.com/u/Efirem)\
**Post date:** [January 30, 2023, 5:19pm UTC](https://forums.eveonline.com/t/why-validate-jwt-tokens/393527/3 "2023-01-30T17:19:26Z")

</div>

I’ll concede you learning is fun, and I would totally understand a developer who would write JWT validation code just for the sake of it.

However, in my opinion, said code should NOT make it to production unless it increases security (which doesn’t seem to be the case here).

- Increasing app size and CPU/RAM usage should always be weighted against the benefit it provides.
- If there is a bug in the JWT validation code that makes it return “valid” on invalid tokens, the author will never know it (and therefore never learn from the mistake they made).
- If there is a bug in this code that makes it return “invalid” on valid tokens, the app will break in production (which [already happened](https://forums.eveonline.com/t/esi-problem-jwk-validation-invalid-audience/356276)).

So unless someone explain me why its useful to validate tokens in production, I won’t do it.

---

_[View the full topic](https://forums.eveonline.com/t/why-validate-jwt-tokens/393527)._
