Class YouTubeToken
An access token the YouTube OAuth route issued for a refresh token.
public sealed record YouTubeToken : IEquatable<YouTubeToken>
- Inheritance
-
YouTubeToken
- Implements
- Inherited Members
Remarks
The relay echoes the token endpoint's answer verbatim, and only the four modeled members survive the parse, anything else the provider appends (e.g. a rotated refresh token) is dropped.
Properties
AccessToken
The issued access token.
[JsonPropertyName("access_token")]
[JsonInclude]
public string AccessToken { get; }
Property Value
ExpiresInSeconds
How long the token stays valid, in seconds.
[JsonPropertyName("expires_in")]
[JsonInclude]
public long ExpiresInSeconds { get; }
Property Value
Scope
The scopes the token grants.
[JsonPropertyName("scope")]
[JsonInclude]
public string? Scope { get; }
Property Value
TokenType
The token type, e.g. Bearer.
[JsonPropertyName("token_type")]
[JsonInclude]
public string? TokenType { get; }