v2.4.2: Refactors token validation process.
Improves the token validation process by incorporating the identifier directly into the `byToken` query. This change simplifies the code by removing the need for a separate `byIdentifier` query, and ensures that tokens are validated against a specific identifier when it is provided, or only returns tokens without an identifier when no identifier is provided.