Language

OAuthFlow.IsSignedInAsync<TActivity> Method

Definition

Check whether the user has a valid cached token for this flow's connection.

public System.Threading.Tasks.Task<bool> IsSignedInAsync<TActivity>(Microsoft.Teams.Apps.Context<TActivity> context, System.Threading.CancellationToken cancellationToken = default) where TActivity : Microsoft.Teams.Apps.Schema.TeamsActivity;
member this.IsSignedInAsync : Microsoft.Teams.Apps.Context<'Activity (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool> (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)
Public Function IsSignedInAsync(Of TActivity As TeamsActivity) (context As Context(Of TActivity), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Type Parameters

TActivity

The activity type.

Parameters

context
Context<TActivity>

The current turn context.

cancellationToken
CancellationToken

A cancellation token.

Returns

True if the user has a valid token; false otherwise.

Applies to