// Authorization callback handler
if (window.boostsiteAuthData) {
    if (boostsiteAuthData.action === 'close') {
        window.close();
    } else if (boostsiteAuthData.action === 'error') {
        alert(boostsiteAuthData.message);
        window.close();
    }
} 
