add missing return type option when requesting bedrock uuid
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 39s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 22s

This commit is contained in:
2025-10-11 14:48:39 +02:00
parent f1b955655c
commit 1d17dbe8f9

View File

@@ -14,7 +14,7 @@ export async function getJavaUuid(username: string) {
} }
// https://github.com/carlop3333/XUIDGrabber/blob/main/grabber.js // https://github.com/carlop3333/XUIDGrabber/blob/main/grabber.js
export async function getBedrockUuid(username: string): Promise<string> { export async function getBedrockUuid(username: string): Promise<string | null> {
const initialPageResponse = await fetch('https://cxkes.me/xbox/xuid'); const initialPageResponse = await fetch('https://cxkes.me/xbox/xuid');
const initialPageContent = await initialPageResponse.text(); const initialPageContent = await initialPageResponse.text();
const token = /name="_token"\svalue="(?<token>\w+)"/.exec(initialPageContent)?.groups?.token; const token = /name="_token"\svalue="(?<token>\w+)"/.exec(initialPageContent)?.groups?.token;