def set_token_validator(self, func):
    'Sets the function used to perform token validation.\n\n        :param func:\n            A function that receives ``(store, user_id, token, token_ts)``\n            and returns a tuple ``(user_dict, token)``.\n        '
    self.validate_token = func.__get__(self, self.__class__)
Sets the function used to perform token validation.

:param func:
    A function that receives ``(store, user_id, token, token_ts)``
    and returns a tuple ``(user_dict, token)``.
def set_token_validator(self, func):
    'Sets the function used to perform token validation.\n\n        :param func:\n            A function that receives ``(store, user_id, token, token_ts)``\n            and returns a tuple ``(user_dict, token)``.\n        '
    self.validate_token = func.__get__(self, self.__class__)