fix: singleton added in JwtTokenService
This commit is contained in:
parent
70780d620a
commit
eba11f515d
@ -14,7 +14,6 @@ public static class SecureConfiguration
|
|||||||
{
|
{
|
||||||
services.AddSecurityServices(configuration);
|
services.AddSecurityServices(configuration);
|
||||||
|
|
||||||
services.AddSingleton<IAccessToken, JwtTokenService>();
|
|
||||||
services.AddSingleton<IRevokedToken, MemoryRevokedTokenService>();
|
services.AddSingleton<IRevokedToken, MemoryRevokedTokenService>();
|
||||||
|
|
||||||
if (configuration.Get<GeneralConfig>()?.CacheSettings?.TypeDatabase == CacheSettings.CacheEnum.Redis)
|
if (configuration.Get<GeneralConfig>()?.CacheSettings?.TypeDatabase == CacheSettings.CacheEnum.Redis)
|
||||||
|
Loading…
Reference in New Issue
Block a user