document.addEventListener('DOMContentLoaded', async () => { await api.getCSRFToken(); });