Table of Contents

Class AuthToken

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

An ephemeral auth token for the Live API. Pass Name as the API key of a GoogleAIPlatformAdapter used by a Live client; the client then connects to the constrained endpoint.

public class AuthToken
Inheritance
AuthToken
Inherited Members
Extension Methods

Properties

ExpireTime

When the token expires.

[JsonPropertyName("expireTime")]
public Timestamp? ExpireTime { get; set; }

Property Value

Timestamp

Name

The token, in the form auth_tokens/{token}. Use it in place of an API key.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

NewSessionExpireTime

The latest time the token can be used to start a new Live session.

[JsonPropertyName("newSessionExpireTime")]
public Timestamp? NewSessionExpireTime { get; set; }

Property Value

Timestamp

Uses

How many sessions the token can start.

[JsonPropertyName("uses")]
public int? Uses { get; set; }

Property Value

int?