Identity
One of the supporter's signed-in provider accounts.
One of the supporter's signed-in provider accounts.
namespace Sponsorkit;
public sealed class IdentityConstructors#
| Member | Description |
|---|---|
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#
| Member | Description |
|---|---|
Provider | The provider (see Providers). |
Id | The provider's immutable user id. |
Handle | The login or slug, when known. |
NeedsReconnect | The 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