Table of Contents

LinkSteam

Methods
public PlayerAccountOperation LinkSteam(string ticket, string identity = "", bool force = false, CancellationToken cancellationToken = default)

Adds Steam authentication to the current player account.

Parameters
Type Name Description
string ticket

Steam ticket for the account.

string identity

(Optional) The identifier string that was passed as a parameter to the GetAuthTicketForWebApi method of the Steamworks Web API when the ticket was created.

bool force

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

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

WARNING: If the Steam 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.