Table of Contents

Class Tokens

Namespace
Google.GenAI
Assembly
Google.GenAI.dll

Provides methods for managing the ephemeral auth tokens. The tokens module is experimental.

public sealed class Tokens
Inheritance
Tokens
Inherited Members

Methods

CreateAsync(CreateAuthTokenConfig?, CancellationToken)

Creates an ephemeral auth token resource.

public Task<AuthToken> CreateAsync(CreateAuthTokenConfig? config = null, CancellationToken cancellationToken = default)

Parameters

config CreateAuthTokenConfig
cancellationToken CancellationToken

Returns

Task<AuthToken>