I've got a couple of functions that are used for processing and validating the JWT token inside a cookie, checking the expiration date and throwing errors if need be.
Falling in line with the DRY method, where would be the best place to have these functions physically in the code?
I'm looking at modularity, DRY and ease of use internally.