Remove API key

This commit is contained in:
Natsumi
2023-06-01 03:53:53 +12:00
parent 5995a3f86a
commit 9501a18972

View File

@@ -691,7 +691,6 @@ speechSynthesis.getVoices();
API.applyConfig = function (json) {
var ref = {
clientApiKey: '',
...json
};
this.cachedConfig = ref;
@@ -1365,7 +1364,7 @@ speechSynthesis.getVoices();
}
$app.saveCredentials = params;
}
return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, {
return this.call('auth/user', {
method: 'GET',
headers: {
Authorization: `Basic ${auth}`
@@ -1678,7 +1677,7 @@ speechSynthesis.getVoices();
};
API.getCurrentUser = function () {
return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, {
return this.call('auth/user', {
method: 'GET'
}).then((json) => {
var args = {