IntelligenceX

API Reference

Class

AuthBundle

Namespace IntelligenceX.OpenAI.Auth
Assembly IntelligenceX
Modifiers sealed

Represents an authentication bundle for OpenAI providers.

Inheritance

  • Object
  • AuthBundle

Usage

Explore 17 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 8

Constructors

public AuthBundle(String provider, String accessToken, String refreshToken, DateTimeOffset? expiresAt) #

Initializes a new authentication bundle.

Parameters

provider System.String requiredposition: 0
Provider identifier.
accessToken System.String requiredposition: 1
Access token.
refreshToken System.String requiredposition: 2
Refresh token.
expiresAt System.DateTimeOffset? requiredposition: 3
Expiration timestamp.

Methods

public Boolean IsExpired(DateTimeOffset? now = null) #
Returns: Boolean

Returns whether the bundle is expired at the given instant.

Parameters

now System.DateTimeOffset? = null optionalposition: 0
Optional clock override.

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 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.