Language

BotApplication.UserTokenClient Property

Definition

Gets the UserTokenClient used to manage OAuth user tokens (sign-in, sign-out, token exchange).

public virtual Microsoft.Teams.Core.UserTokenClient UserTokenClient { get; }
member this.UserTokenClient : Microsoft.Teams.Core.UserTokenClient
Public Overridable ReadOnly Property UserTokenClient As UserTokenClient

Property Value

Remarks

This property is only available when the bot is constructed via dependency injection or with an explicit UserTokenClient. It throws InvalidOperationException if accessed on a test instance created with the parameterless constructor.

Applies to