I updated my modules in PowerShell on 4/22/2021 and now when I try to execute:
Connect-MgGraph -ClientID HIDDEN -TenantId HIDDEN -CertificateThumbprint HIDDEN
I am getting the following error:
Connect-MgGraph : Could not load type 'System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler' from assembly 'System.IdentityModel.Tokens.Jwt,
Version=4.0.20622.1351, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
At line:1 char:1
- Connect-MgGraph -ClientID $env:PnPClientId -TenantId $env:PnPTenantId ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Connect-MgGraph], TypeLoadException
- FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Authentication.Cmdlets.ConnectMgGraph
Executing the connect statement prior to executing update-module, connected successfully.
microsoft.graph.authentication is now version 1.5.0
Does anyone have suggestions on how to fix this error so I can connect?