mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-02-23 20:51:30 +03:00
Added Warnings & changeApiUrl (authenticator.js)
This commit is contained in:
parent
4e9c2fbfb3
commit
c35332a8e5
3 changed files with 17 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
const request = require('request');
|
||||
const uuid = require('uuid/v1');
|
||||
const api_url = "https://authserver.mojang.com";
|
||||
let api_url = "https://authserver.mojang.com";
|
||||
|
||||
module.exports.getAuth = function (username, password) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -13,8 +13,7 @@ module.exports.getAuth = function (username, password) {
|
|||
user_properties: JSON.stringify({})
|
||||
};
|
||||
|
||||
resolve(user);
|
||||
return;
|
||||
return resolve(user);
|
||||
}
|
||||
|
||||
const requestObject = {
|
||||
|
@ -137,4 +136,8 @@ module.exports.signOut = function (username, password) {
|
|||
else reject(body);
|
||||
});
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
module.exports.changeApiUrl = function(url) {
|
||||
api_url = url;
|
||||
}
|
Loading…
Add table
Reference in a new issue