Remove Steam auth

This commit is contained in:
Natsumi
2022-07-29 06:54:08 +12:00
parent 9aef61b9df
commit b0109e60d3
6 changed files with 4 additions and 106 deletions

View File

@@ -1181,33 +1181,6 @@ speechSynthesis.getVoices();
});
};
/*
params: {
steamTicket: string
}
*/
API.loginWithSteam = function (params) {
return this.call(
`auth/steam?apiKey=${this.cachedConfig.clientApiKey}`,
{
method: 'POST',
params
}
).then((json) => {
var args = {
json,
params,
origin: true
};
if (json.requiresTwoFactorAuth) {
this.$emit('USER:2FA', args);
} else {
this.$emit('USER:CURRENT', args);
}
return args;
});
};
/*
params: {
code: string