Dela via


UserManager<TUser>.RemoveAuthenticationTokenAsync Method

Definition

Remove an authentication token for a user.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ RemoveAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
abstract member RemoveAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemoveAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function RemoveAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String) As Task(Of IdentityResult)

Parameters

user
TUser
loginProvider
String

The authentication scheme for the provider the token is associated with.

tokenName
String

The name of the token.

Returns

Whether a token was removed.

Applies to