
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
cryptum-spartantoken-retriever
Advanced tools
Easily retrieve your SpartanToken and start interacting with Halo games API
SpartanToken Retriever allows anyone to easily retrieve a v3 SpartanToken Authorization (X-343-Authorization-Spartan) and start interacting with Halo games API.
import SpartanTokenRetriever from 'cryptum-spartantoken-retriever'
// Requires Xbox LIVE credentials
const SpartanToken = new SpartanTokenRetriever(
'email@xboxlive.com',
'password'
);
SpartanToken.retrieve()
.then(spartanToken => console.log(spartanToken))
.catch(error => console.log(error.getFormatedError()));
Success output:
{
"AccountStatus": 0,
"SpartanToken": "v3=U:XXXXXX;YYY...",
"Gamertag": "Le ZeNy",
"AnalyticsToken": "...",
"V3Preamble": "v3=",
"V3Token": "YYY...",
"Players": [
{
"AnalyticsToken": "...",
"Subject": "U:XXXXXX",
"Gamertag": "Le ZeNy",
"Xuid": "...",
"SpartanClaims": []
}
],
"ExpiresUtc": {
"ISO8601Date": "2017-08-21T12:12:00.187Z"
},
"Links": [
{
"Absolute": false,
"Relationship": 0,
"Uri": "/spartan-token"
}
]
}
Error output (wrong credentials):
{
code: 11,
status: 401,
message: 'Unauthorized',
reason: 'UNAUTHORIZED'
}
Methods:
error.getFormatedError()
— Pretty print the last error.
error.getReason()
:
— Return error reason.
error.getCode()
:
— Return error code.
error.getMessage()
:
— Return error message.
error.getStack()
:
— Return error stack trace.
error.getHTTPStatus()
:
— Return error HTTP status.
HTTP Status:
Feel free to open a pull request or an issue on GitHub!
Tweet me at @_SuckMyLuck or message me on Reddit!
MIT
FAQs
Easily retrieve your SpartanToken and start interacting with Halo games API
We found that cryptum-spartantoken-retriever demonstrated a not healthy version release cadence and project activity because the last version was released 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.