import os
import pickle

CONFIG_DIRECTORY = os.path.join(os.path.expanduser('~'), '.config', 'ok')
REFRESH_FILE = os.path.join(CONFIG_DIRECTORY, "auth_refresh")
CERT_FILE = os.path.join(CONFIG_DIRECTORY, "cacert.pem")

def create_config_directory():
    if not os.path.exists(CONFIG_DIRECTORY):
        os.makedirs(CONFIG_DIRECTORY)
    return CONFIG_DIRECTORY

def get_storage():
    create_config_directory()
    with open(REFRESH_FILE, 'rb') as fp:
        storage = pickle.load(fp)

    access_token = storage['access_token']
    expires_at = storage['expires_at']
    refresh_token = storage['refresh_token']

    return access_token, expires_at, refresh_token
@@ -358,308 +358,4 @@
 ORY%0A
-%0Adef get_storage():%0A    create_config_directory()%0A    with open(REFRESH_FILE, 'rb') as fp:%0A        storage = pickle.load(fp)%0A%0A    access_token = storage%5B'access_token'%5D%0A    expires_at = storage%5B'expires_at'%5D%0A    refresh_token = storage%5B'refresh_token'%5D%0A%0A    return access_token, expires_at, refresh_token

Remove duplicate get_storage definition