Fixed Plex OAuth, should no longer show Insecure warning

This commit is contained in:
Jamie Rees 2018-07-01 22:16:12 +01:00
parent fe590004d2
commit c55fc32c63
4 changed files with 29 additions and 24 deletions

View file

@ -34,19 +34,6 @@ namespace Ombi.Core.Authentication
return string.Empty;
}
if (pin.authToken.IsNullOrEmpty())
{
// Looks like we do not have a pin yet, we should retry a few times.
var retryCount = 0;
var retryMax = 5;
var retryWaitMs = 1000;
while (pin.authToken.IsNullOrEmpty() && retryCount < retryMax)
{
retryCount++;
await Task.Delay(retryWaitMs);
pin = await _api.GetPin(pinId);
}
}
return pin.authToken;
}