Making an extension for myself to test something and I need to fetch accounts that user is currently is able to switch between i’ve used “getLoggedInUsersMetadata” but without “encrypted_users_data_blob” it just logs you out of all accounts except current one, any ideas how i can get “encrypted_users_data_blob”
Using https://apis.roblox.com/account-switcher/v1/getLoggedInUsersMetadata
does not log me out. It gives me a logged_in_users_metadata array which has generic info about each logged in user. That’s exactly what you want, so what’s wrong?
Nevermind, I misread your question. Give me a minute.
Okay I figured it out. You don’t need the blob at all. In the body simply include:
{"remove_invalid_active_user":false}
I ran the endpoint without the blob and it didn’t log me out and still told me all of the currently logged in users.
Thank you gonna check it out right now
Tried what you mentioned but seems that it still logs me out? like leaves only one account there
even with blob in it
async function fetchAccounts() {
const token = await waitForCsrfToken();
const blob = await waitForRbxBlob();
if (!token) {
console.error("[SwitchAccounts] No CSRF token available.");
return null;
}
if (!blob) {
console.error("[SwitchAccounts] No Account Switcher blob available.");
return null;
}
const res = await gmFetch("https://apis.roblox.com/account-switcher/v1/getLoggedInUsersMetadata", {
method: "POST",
headers: {
"x-csrf-token": token,
"Content-Type": "application/json;charset=UTF-8"
},
body: JSON.stringify({
remove_invalid_active_user: false,
})
});
if (!res.ok) {
console.error("[SwitchAccounts] API request failed with status:", res.status);
return null;
}
return await res.json();
}
Here’s what i use
What about cookies? There might be data you’re missing. I recommend going on the website, and use the account switcher yourself with network dev tools open and seeing what cookies and data are sent when Roblox themselves do it.
seems like it misses x-bound-auth-token but not sure where i can retrieve it
I tried it without the x bound header and it still worked no problem. I will do more testing.
bump seems like that none of that still work