Identity

One of the supporter's signed-in provider accounts.

On this page

One of the supporter's signed-in provider accounts.

namespace Sponsorkit;

public sealed class Identity

Constructors#

MemberDescription
Identity()Creates an instance with every property at its default; set the properties with an object initializer.

Identity()#

public Identity()

Creates an instance with every property at its default; set the properties with an object initializer.

Properties#

MemberDescription
ProviderThe provider (see Providers).
IdThe provider's immutable user id.
HandleThe login or slug, when known.
NeedsReconnectThe provider token expired; call SponsorkitClient.SignInAsync with this provider to reconnect.

Provider#

public string Provider { get; set; } = "";

The provider (see Providers).

Type: string · Default: "" · JSON: provider

Id#

public string Id { get; set; } = "";

The provider's immutable user id.

Type: string · Default: "" · JSON: id

Handle#

public string? Handle { get; set; }

The login or slug, when known.

Type: string? · JSON: handle

NeedsReconnect#

public bool NeedsReconnect { get; set; }

The provider token expired; call SponsorkitClient.SignInAsync with this provider to reconnect.

Type: bool · JSON: needsReconnect