UserManager<TUser>.RemoveAuthenticationTokenAsync Method

Definition

Remove an authentication token for a user.

C#
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);

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

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0