UserManager<TUser>.RemoveAuthenticationTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for