public async Task <bool> IsRefreshTokenValid(string accountId, string refreshTokenFromRequest, CancellationToken cancellationToken = default(CancellationToken)) { var refreshToken = await _refreshTokenRepository.GetOneAndDeleteAsync(a => a.AccountId == accountId && a.Token == refreshTokenFromRequest, cancellationToken); return(refreshToken is not null); }