Share via


OAuthClientOld.SignOutUserAsync(String, String, CancellationToken) Method

Definition

Signs the user out of a connection.

public System.Threading.Tasks.Task<bool> SignOutUserAsync (string userId, string connectionName = default, System.Threading.CancellationToken cancellationToken = default);
member this.SignOutUserAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function SignOutUserAsync (userId As String, Optional connectionName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

userId
String

The user's ID.

connectionName
String

Name of the auth connection to sign out of.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Remarks

If the task completes successfully, the response indicates whether the call to sign the user out was successful.

Applies to