UserManager<TUser>.RemoveAuthenticationTokenAsync(TUser, String, String) UserManager<TUser>.RemoveAuthenticationTokenAsync(TUser, String, String) UserManager<TUser>.RemoveAuthenticationTokenAsync(TUser, String, String) Method

Definition

Remove an authentication token for a user.

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 TUser TUser
loginProvider
String String String

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

tokenName
String String String

The name of the token.

Returns

Whether a token was removed.

Applies to