<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_token(data: dict, token: str) -> bool: """ Validate auth token :param data: :param token: :return: """

    param_hash = data.get('hash', '') or ''
    return param_hash == generate_hash(data, token)