mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Remove API key
This commit is contained in:
+2
-3
@@ -691,7 +691,6 @@ speechSynthesis.getVoices();
|
|||||||
|
|
||||||
API.applyConfig = function (json) {
|
API.applyConfig = function (json) {
|
||||||
var ref = {
|
var ref = {
|
||||||
clientApiKey: '',
|
|
||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
this.cachedConfig = ref;
|
this.cachedConfig = ref;
|
||||||
@@ -1365,7 +1364,7 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
$app.saveCredentials = params;
|
$app.saveCredentials = params;
|
||||||
}
|
}
|
||||||
return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, {
|
return this.call('auth/user', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Basic ${auth}`
|
Authorization: `Basic ${auth}`
|
||||||
@@ -1678,7 +1677,7 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
API.getCurrentUser = function () {
|
API.getCurrentUser = function () {
|
||||||
return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, {
|
return this.call('auth/user', {
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}).then((json) => {
|
}).then((json) => {
|
||||||
var args = {
|
var args = {
|
||||||
|
|||||||
Reference in New Issue
Block a user