in frontend/utils.js [12:22]
async function getAuthToken() {
if (authToken) return authToken;
const res = await fetch("/rna/auth_token/");
if (!res.ok) throw new Error(`Auth token request failed: ${res.status}`);
const data = await res.json();
if (!data.token) throw new Error("No token in response");
authToken = data.token;
return authToken;
}