Table of Contents

LinkXbox

Methods
public PlayerAccountOperation LinkXbox(string token, bool force = false, CancellationToken cancellationToken = default)

Adds Xbox account authentication to the current player account.

Parameters
Type Name Description
string token

Xbox Live Token provided by the Xbox Live SDK method GetTokenAndSignatureAsync.

bool force

If the Xbox account is already linked to another player account, and a force value of false is passed, then an error will be returned.

If the Xbox account is already linked to another player account, and a force value of true is passed, then the Xbox account will be unlinked from the other player account, and linked to this one.

WARNING: If the Xbox account is unlinked from another player account, and that other player account has no other authentication methods set up, then access to that player account will be lost.

CancellationToken cancellationToken

Can be used to cancel the operation.

Returns
Type Description
PlayerAccountOperation

Result of the operation.