Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolajA committed Dec 5, 2020
1 parent e2cdf20 commit e150313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Get-IntuneManagedDeviceBitLockerKeyPresence.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Process {
$TokenExpireMins = ([datetime]$Headers["ExpiresOn"] - $UTCDateTime).Minutes

# Attempt to retrieve a refresh token when token expiration count is less than or equal to 0
if ($TokenExpireMins -le 0) {
if ($TokenExpireMins -le 10) {
Write-Verbose -Message "Existing token found but has expired, requesting a new token"
$AccessToken = Get-MsalToken -TenantId $Script:TenantID -ClientId $Script:ClientID -Silent -ForceRefresh
$Headers = New-AuthenticationHeader -AccessToken $AccessToken
Expand Down

0 comments on commit e150313

Please sign in to comment.