import json


def create_opaque_data(nonce: str, token: str) -> str:
    """
    :param nonce: Nonce
    :param token: Token

    :return: Opaque data for the user
    """
    # The "1" below denotes the version of the data exchanged, right now only version 1 is supported.
    return '1' + json.dumps({'nonce': nonce, 'token': token})