Method GetSpartanToken
GetSpartanToken(String, Int32)
Gets the Spartan V4 token.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.Security.SpartanToken?> GetSpartanToken (string xstsToken, int version = 4);
Parameters
Type | Name | Description |
---|---|---|
System.String | xstsToken | XSTS token from the Xbox Live authentication flow. |
System.Int32 | version | Version for the Spartan token to be obtained. Halo Infinite uses 4, while Halo 5 uses 3. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SpartanToken> | If successful, returns an instance of SpartanToken representing the authentication token. Otherwise, returns null. |