def run(flask_client: FlaskTDAuth, close_after: bool=False):
    certs_pem = pathlib.Path(__file__).parents[0].joinpath('certs/cert.pem')
    certs_key = pathlib.Path(__file__).parents[0].joinpath('certs/key.pem')
    app.secret_key = (os.environ.get('SECRET_KEY') or os.urandom(24))
    app.config['auth_client'] = flask_client
    app.config['call_close'] = close_after
    app.run(ssl_context=(certs_pem, certs_key), host='localhost', port=5000, debug=True)
def run(flask_client: FlaskTDAuth, close_after: bool=False):
    certs_pem = pathlib.Path(__file__).parents[0].joinpath('certs/cert.pem')
    certs_key = pathlib.Path(__file__).parents[0].joinpath('certs/key.pem')
    app.secret_key = (os.environ.get('SECRET_KEY') or os.urandom(24))
    app.config['auth_client'] = flask_client
    app.config['call_close'] = close_after
    app.run(ssl_context=(certs_pem, certs_key), host='localhost', port=5000, debug=True)