.net core 在net core api中使用RegisterTokenProvider方法在哪里注册googleauthenticatortokenprovider?

.net core 在net core api中使用RegisterTokenProvider方法在哪里注册googleauthenticatortokenprovider?,.net-core,identity,.net Core,Identity,我已经实现了一个自定义的GoogleAuthenticatorTokenProvider,它从IUSERTwoFactoryTokenProvider实现。我只想将此提供程序注册到双因素令牌提供程序列表中,以便在GetValidTwoFactorProvidersAsync方法中找到它

我已经实现了一个自定义的GoogleAuthenticatorTokenProvider,它从IUSERTwoFactoryTokenProvider实现。我只想将此提供程序注册到双因素令牌提供程序列表中,以便在GetValidTwoFactorProvidersAsync方法中找到它