UserManager<TUser>.RegisterTokenProvider(String, IUserTwoFactorTokenProvider<TUser>) UserManager<TUser>.RegisterTokenProvider(String, IUserTwoFactorTokenProvider<TUser>) UserManager<TUser>.RegisterTokenProvider(String, IUserTwoFactorTokenProvider<TUser>) Method

Definition

Registers a token provider.

public virtual void RegisterTokenProvider (string providerName, Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<TUser> provider);
abstract member RegisterTokenProvider : string * Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<'User (requires 'User : null)> -> unit
override this.RegisterTokenProvider : string * Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<'User (requires 'User : null)> -> unit
Public Overridable Sub RegisterTokenProvider (providerName As String, provider As IUserTwoFactorTokenProvider(Of TUser))

Parameters

providerName
String String String

The name of the provider to register.

Applies to