Table of Contents

LinkGuest

Methods
public PlayerAccountOperation LinkGuest(GuestId guestId, bool force = false, CancellationToken cancellationToken = default)

Links the guest id to the current player account.

Parameters
Type Name Description
GuestId guestId

GuestId to link to the player account.

bool force

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

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

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