AuthTokens Class

Represents authentication tokens used to access secure APIs or resources.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class AuthTokens
Inheritance
Object    AuthTokens

Remarks

This class contains the necessary tokens and metadata required for authentication. It typically includes the access token, refresh token, and their expiration time. It can be used in conjunction with authenticators to manage secure access.

Constructors

AuthTokensInitializes a new instance of the AuthTokens class

Properties

AccessToken Gets or sets the access token used for authenticating requests to secure APIs or resources.
ExpiryTime Gets or sets the expiration time of the token.
RefreshToken Gets or sets the refresh token used to obtain a new access token when the current one expires.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Validate 

See Also