Class DeviceCodeResponse
Represents the response from a device code authorization request.
public sealed record DeviceCodeResponse : IEquatable<DeviceCodeResponse>
- Inheritance
-
DeviceCodeResponse
- Implements
- Inherited Members
Properties
Code
Gets the user-facing code to enter on the verification page, or null if not available.
[JsonPropertyName("code")]
public string? Code { get; init; }
Property Value
DeviceCode
Gets the device code used to poll for authorization, or null if not available.
[JsonPropertyName("device_code")]
public string? DeviceCode { get; init; }
Property Value
ExpiresAt
Gets the date and time when the device code expires, or null if not available.
[JsonPropertyName("expires_at")]
public DateTimeOffset? ExpiresAt { get; init; }
Property Value
FriendlyVerificationUrl
Gets the user-friendly short verification URL, or null if not available.
[JsonPropertyName("friendly_verification_url")]
public string? FriendlyVerificationUrl { get; init; }
Property Value
Interval
Gets the polling interval in seconds for checking authorization status.
[JsonPropertyName("interval")]
public int Interval { get; init; }
Property Value
VerificationUrl
Gets the URL where the user should enter the code, or null if not available.
[JsonPropertyName("verification_url")]
public string? VerificationUrl { get; init; }