Add Bifrost Heimdall app profile

This commit is contained in:
Meta Vens 2026-06-08 21:04:51 +01:00
commit 18e2bf812e
10 changed files with 206 additions and 26 deletions

View file

@ -463,18 +463,16 @@ function acceptsBackendCallback(config: HeimdallConfig, appSlug: AppSlug, handof
return false;
}
if ((config.appBackendCallbacks[appSlug] ?? []).includes(handoff.callbackUrl)) {
return true;
}
if (appSlug === "repixelizer") {
return (
handoff.callbackUrl === "https://repixelizer.gamecult.org/api/auth/heimdall/callback" ||
(config.appBackendCallbacks.repixelizer ?? []).includes(handoff.callbackUrl)
);
return handoff.callbackUrl === "https://repixelizer.gamecult.org/api/auth/heimdall/callback";
}
if (appSlug === "spotiverse") {
return (
handoff.callbackUrl === "http://127.0.0.1:8796/auth/heimdall/callback" ||
(config.appBackendCallbacks.spotiverse ?? []).includes(handoff.callbackUrl)
);
return handoff.callbackUrl === "http://127.0.0.1:8796/auth/heimdall/callback";
}
return false;