Skip to content

Commit

Permalink
Fix 401 error when starting xHome stream
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownskl committed Apr 10, 2024
1 parent 539c71e commit 310c6f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ export default class Application {
})

this._authentication._xal.getStreamingToken(this._authentication._tokenStore).then((streamingTokens) => {
this._xHomeApi = new xCloudApi(this, 'uks.gssv-play-prodxhome.xboxlive.com', streamingTokens.xHomeToken.data.gsToken, 'home')
this.log('electron', __filename+'[authenticationCompleted()] Using hosts for xCloud and xHome:')
this.log('electron', __filename+'[authenticationCompleted()] - xHome:', streamingTokens.xHomeToken.getDefaultRegion().baseUri.substring(8))
this.log('electron', __filename+'[authenticationCompleted()] - xCloud:', streamingTokens.xCloudToken.getDefaultRegion().baseUri.substring(8))
this._xHomeApi = new xCloudApi(this, streamingTokens.xHomeToken.getDefaultRegion().baseUri.substring(8), streamingTokens.xHomeToken.data.gsToken, 'home')
this._xCloudApi = new xCloudApi(this, streamingTokens.xCloudToken.getDefaultRegion().baseUri.substring(8), streamingTokens.xCloudToken.data.gsToken, 'cloud')

// Let IPC know we are ready
Expand Down

0 comments on commit 310c6f5

Please sign in to comment.