Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
minecraft-auth
Advanced tools
Readme
Minecraft-auth is a package to authenticate and get minecraft access tokens.
Authentication Types:
Mojang API:
Package contains MojangApi class which can be used to fetch other users skins, uuids, check server status and more.
Usage of lowercase classes like mojangAccount
should be converted to use uppercase equivalents like MojangAccount
. Usage of lowercase classes may be removed in the future. Currently, it only shows warning about the deprecation.
All authentication errors are thrown by using AuthenticationError or OwnershipError classes they all extend Error class.
AuthenticationError also contains additionalInfo: string
var minecraftAuth = require("minecraft-auth")
let account = new minecraftAuth.MojangAccount();
await account.Login("email","password");
var minecraftAuth = require("minecraft-auth")
let account = new minecraftAuth.MicrosoftAccount();
let appID = "app id";
let appSecret = "app secret";
let redirectURL = "http://localhost:8080/token";
minecraftAuth.MicrosoftAuth.setup(appID, appSecret, redirectURL);
console.log(minecraftAuth.MicrosoftAuth.createUrl());
let code = await MicrosoftAuth.listenForCode(8080);
if(code !== undefined){
await account.authFlow(code);
}
var minecraftAuth = require("minecraft-auth")
let account = new minecraftAuth.CrackedAccount("username");
await authenticate(); //function from above examples
console.log(account.accessToken);
await account.getProfile();
console.log(account.username); //Username of the account
console.log(account.uuid); //UUID of the account (without dashes)
console.log(account.ownership); //Does account even have minecraft
console.log(account.profile) //User profile - skins, capes, uuid, username
console.log(account.profile.skins[0].url) //URL of the 1st skin.
AccountsStorage is a storage for your accounts.
You can add new account with AccountsStorage::addAccount(account)
You can remove account with AccountsStorage::removeAccount(account)
You can get accounts with:
getAccount(index)
getAccountByName(name)
getAccountByUUID(uuid)
serialize
converts storage to JSON string to save in filedeserialize
converts string to AccountStorage objectFAQs
Package to authenticate with minecraft using traditional yggdrasil, new microsoft authentication and non-premium.
The npm package minecraft-auth receives a total of 167 weekly downloads. As such, minecraft-auth popularity was classified as not popular.
We found that minecraft-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.