Made getUserBasic spec issue more clear

This commit is contained in:
Jonathan Barrow
2022-09-24 08:41:02 -04:00
parent b2c1d73e51
commit 81585da939

View File

@@ -54,6 +54,8 @@ async function doesUserExist(username) {
async function getUserBasic(token) {
verifyConnected();
// Wii U sends Basic auth as `username password`, where the password may not have spaces
// This is not to spec, but that is the consoles fault not ours
const [username, password] = Buffer.from(token, 'base64').toString().split(' ');
const user = await getUserByUsername(username);