aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mojang.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mojang.ts b/src/mojang.ts
index 1bc8474..17918b1 100644
--- a/src/mojang.ts
+++ b/src/mojang.ts
@@ -72,6 +72,8 @@ export async function profileFromUsername(username: string): Promise<MojangApiRe
data = await fetchResponse.json()
} catch {}
+ console.log('mojang returned', data)
+
if (!data?.id) {
console.log('mojang api failed, trying ashcon as backup')
return await profileFromUsernameAlternative(username)
@@ -102,6 +104,7 @@ export async function profileFromUsernameAlternative(username: string): Promise<
} catch {
return { uuid: null, username: null }
}
+ console.log('aight ashcon returned', data.uuid)
return {
uuid: undashUuid(data.uuid),
username: data.username