@classmethod
def find(cls, db, token):
    """Find a token object by value.

        Returns None if not found.

        `kind='user'` only returns API tokens for users
        `kind='service'` only returns API tokens for services
        """
    prefix_match = cls.find_prefix(db, token)
    for orm_token in prefix_match:
        if orm_token.match(token):
            return orm_token
