Class
AuthBundle
Represents an authentication bundle for OpenAI providers.
Inheritance
- Object
- AuthBundle
Constructors
public AuthBundle(String provider, String accessToken, String refreshToken, Nullable<DateTimeOffset> expiresAt) #Initializes a new authentication bundle.
Parameters
- provider System.String
- Provider identifier.
- accessToken System.String
- Access token.
- refreshToken System.String
- Refresh token.
- expiresAt System.Nullable{System.DateTimeOffset}
- Expiration timestamp.
Methods
public Boolean IsExpired(Nullable<DateTimeOffset> now = null) #Returns:
BooleanReturns whether the bundle is expired at the given instant.
Parameters
- now System.Nullable{System.DateTimeOffset} = null
- Optional clock override.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Provider { get; } #Gets the provider identifier.
public String AccessToken { get; set; } #Gets or sets the access token.
public String RefreshToken { get; set; } #Gets or sets the refresh token.
public Nullable<DateTimeOffset> ExpiresAt { get; set; } #Gets or sets the expiration time.
public String TokenType { get; set; } #Gets or sets the token type.
public String Scope { get; set; } #Gets or sets the scopes string.
public String AccountId { get; set; } #Gets or sets the account id when known.
public String IdToken { get; set; } #Gets or sets the ID token when present.