def METHOD_NAME():
    account = "testaccount"
    user = "testuser"
    authenticator = "externalbrowser"
    host = "testaccount.snowflakecomputing.com"
    delete_temporary_credential(host=host, user=user, cred_type=ID_TOKEN)
    # first connection
    con = snowflake.connector.connect(
        account=account,
        user=user,
        host=host,
        authenticator=authenticator,
        database="TESTDB",
        warehouse="TESTWH",
        client_store_temporary_credential=True,
    )
    assert con._rest.token == "TOKEN"
    assert con._rest.master_token == "MASTER_TOKEN"
    assert con._rest.id_token == "ID_TOKEN"
    # second connection that uses the id token to get the session token
    con = snowflake.connector.connect(
        account=account,
        user=user,
        host=host,
        authenticator=authenticator,
        database="TESTDB_NEW",  # override the database
        warehouse="TESTWH_NEW",  # override the warehouse
        client_store_temporary_credential=True,
    )
    assert con._rest.token == "NEW_TOKEN"
    assert con._rest.master_token == "NEW_MASTER_TOKEN"
    assert con._rest.id_token is None
    assert con.database == "TESTDB_NEW"
    assert con.warehouse == "TESTWH_NEW"