Support Forge Server Login account management and registration prompts

This commit is contained in:
Aryan Singh committed 2026-10-16 20:44:39 -05:00
1 parent 683cdc4016
commit d0a696f013
5 files changed
+59 -7

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ import {
forceReregister,
importFromWhitelist,
} from "@/server/authflow";
import { whitelistList, easyauthList } from "@/server/mc";
import { whitelistList, easyauthList, authProvider, registrationCommand } from "@/server/mc";
import { ok, fail, readJson, handle } from "@/server/api";
export const dynamic = "force-dynamic";
@@ -23,7 +23,7 @@ export async function GET() {
try {
registered = await easyauthList();
} catch {}
return ok({ approved: listApproved(), whitelist, registered });
return ok({ approved: listApproved(), whitelist, registered, authProvider: authProvider(), registrationCommand: registrationCommand() });
});
}