def get_user_by_auth_token(self, user_id, token):
    'Returns a user dict based on user_id and auth token.\n\n        :param user_id:\n            User id.\n        :param token:\n            Authentication token.\n        :returns:\n            A tuple ``(user_dict, token_timestamp)``. Both values can be None.\n            The token timestamp will be None if the user is invalid or it\n            is valid but the token requires renewal.\n        '
    (user, ts) = self.user_model.get_by_auth_token(user_id, token)
    return (self.user_to_dict(user), ts)
Returns a user dict based on user_id and auth token.

:param user_id:
    User id.
:param token:
    Authentication token.
:returns:
    A tuple ``(user_dict, token_timestamp)``. Both values can be None.
    The token timestamp will be None if the user is invalid or it
    is valid but the token requires renewal.
def get_user_by_auth_token(self, user_id, token):
    'Returns a user dict based on user_id and auth token.\n\n        :param user_id:\n            User id.\n        :param token:\n            Authentication token.\n        :returns:\n            A tuple ``(user_dict, token_timestamp)``. Both values can be None.\n            The token timestamp will be None if the user is invalid or it\n            is valid but the token requires renewal.\n        '
    (user, ts) = self.user_model.get_by_auth_token(user_id, token)
    return (self.user_to_dict(user), ts)