from pathlib import Path
import json


def load_json(path: Path):
    """
    Loads authentification keys/tokens.
    :param path: JSON file to load the keys from
    :return: Dictionary containing the key-file information
    """
    with open(path, mode='r', encoding='utf8') as file:
        return json.load(file)