|Classes of Scott Arciszewski||PHP PASeTo||docs/03-Implementation-Guide/02-Validators.md||Download|
After verifying and extracting the payloads from the token, but before returning the object representation of the payload to the user, library authors may wish to add the ability for their token parsers to automatically validate the token against some basic constraints.
This is not strictly required, but validation support is highly recommended.
Some examples of validation rules that libraries may wish to provide include:
Example implementations of these validators are included in the PHP implementation.
Validation should fail-closed by default (e.g. if invalid data is provided).