Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 21, 2024
1 parent a597f51 commit 9166714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Actions/Deliver/Deliver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ foreach ($thisProject in $projectList) {
$appSourceContext | Out-Host
$authContext = New-BcAuthContext @appSourceContext
$authContext = ReNew-BcAuthContext $authContext
Start-Sleep -Seconds (60*65) # Sleep for 65 minutes to ensure that the token is invalid
$seconds = $bcAuthContext.UtcExpiresOn.Subtract([DateTime]::UtcNow).TotalSeconds
Write-Host "Token expires in $seconds seconds"
Start-Sleep -Seconds ($seconds+300)
$authContext = ReNew-BcAuthContext $authContext

if ($projectSettings.deliverToAppSource.MainAppFolder) {
Expand Down

0 comments on commit 9166714

Please sign in to comment.