Skip to content

DeviceCode

Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.

public sealed record DeviceCode

One sign-in in progress: what to show the person and what to poll with.

Constructors

DeviceCode(string, string, Uri, TimeSpan, TimeSpan)

public DeviceCode(string Device, string UserCode, Uri VerificationUri, TimeSpan ExpiresIn, TimeSpan Interval);

Parameters

  • Device (string) - GitHub's device code (secret; never shown).
  • UserCode (string) - The short code the person types on GitHub.
  • VerificationUri (Uri) - Where the person types it.
  • ExpiresIn (TimeSpan) - How long the code lives.
  • Interval (TimeSpan) - How often GitHub allows a poll.

Properties

Device

public string Device { get; init; }

GitHub's device code (secret; never shown).

ExpiresIn

public TimeSpan ExpiresIn { get; init; }

How long the code lives.

Interval

public TimeSpan Interval { get; init; }

How often GitHub allows a poll.

UserCode

public string UserCode { get; init; }

The short code the person types on GitHub.

VerificationUri

public Uri VerificationUri { get; init; }

Where the person types it.