API Reference
Class
AuthBundle
Represents an authentication bundle for OpenAI providers.
Inheritance
- Object
- AuthBundle
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method AuthBundleSerializer.Deserialize
- Method FileAuthBundleStore.GetAsync
- Method FileAuthBundleStore.ListAsync
- Method IAuthBundleStore.GetAsync
- Method IAuthBundleStore.ListAsync
- Property OAuthLoginResult.Bundle
Accepted by parameters
- Method AuthBundleSerializer.Serialize
- Method CodexAuthStore.BuildAuthJson
- Method CodexAuthStore.WriteAuthJson
- Method FileAuthBundleStore.SaveAsync
- Method IAuthBundleStore.SaveAsync
- Constructor OAuthLoginResult.OAuthLoginResult
- Method OAuthLoginService.RefreshAsync
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
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.