Add Bifrost Heimdall app profile
This commit is contained in:
parent
38ed95667a
commit
18e2bf812e
10 changed files with 206 additions and 26 deletions
14
src/app.ts
14
src/app.ts
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue