Password reset token provider in ASP.NET core - IUserTokenProvider not found
<p>Hello,</p>
<p>In order to getting password reset work I need to register an IUserTokenProvider instance into DI.</p>
<p>Without it I get exception at following line:</p>
<pre class="lang-cs prettyprint-override"><code>var result = await _userManager.ResetPasswordAsync(user, token, password);
</code></pre>
<blockquote>
<pre class="lang-cs prettyprint-override"><code>&quot;No IUserTokenProvider named 'PasswordResetTokenProvider' is registered.&quot;
</code></pre>
</blockquote>
<p>That makes sense so I tried to register it in the DI:</p>
<pre class="lang-cs prettyprint-override"><code>services.AddSingleton&lt;IUserTokenProvider&lt;User&gt;, DataProtectorTokenProvider&lt;User&gt;&gt;();
</code></pre>
<p>But the interface <code>IUserTokenProvider</code> does not exists. Do you know how to solve this?</p>
<p>Thanks</p>