public UserTokenService( IMemoryCache memoryCache, ApplicationDbContext db, IConfiguration config, SpotifyTokenRefreshService refreshService, ILogger <UserTokenService> logger) { _memoryCache = memoryCache; _db = db; _config = config; _refreshService = refreshService; _dbSignal = new SemaphoreSlim(1, 1); _logger = logger; }
public Task <RefreshAccessTokenResponse> Refresh(SpotifyTokenRefreshService refreshService) { return(refreshService.RefreshTokenAsync(this)); }