Functions/Tokens/Test-JWTTokenExpiry.ps1
Function Test-JWTTokenExpiry { [CmdletBinding()] Param ( # JTW Token Details to Test Expiry [Parameter(Mandatory=$True)] [psobject] $TokenDetails ) Process { if($TokenDetails.expiryDateTime -lt (get-date)){$False} else{$True} } } |