xal-node: Typescript implementation for Xbox Authentication Library (XAL)
📚 Documentation: https://unknownskl.github.io/xal-node/
It is possible to authenticate to different services using this library as well. Not all calls are supported but the authentication part is quite general. You can override the titleId like below:
const xal = xallib.Xal()
xal._app = {
AppId: '<appId>',
TitleId: '<titleId>',
RedirectUri: '<redirectUri>',
}
Big thanks to @tuxuser and Team OpenXbox for creating the xal-rs library and giving the inspiration to port this over to Typescript