function prepareLogins(files, settings) {
    const logins = [];
    let index = 0;
    let origin = new BrowserpassURL(
        settings.authRequested ? parseAuthUrl(settings.tab.url) : settings.origin
    );

    for (let storeId in files) {
        for (let key in files[storeId]) {
            // set login fields
            const login = prepareLogin(settings, storeId, files[storeId][key], index++, origin);

            logins.push(login);
        }
    }

    return logins;
}
Prepare list of logins based on provided files

@since 3.1.0

@param string array  List of password files
@param string object Settings object
@return array List of logins