Lightweight graph authentication, get security tokens (access/refresh) directly from the protocol by authorization code with PKCE, client credentials or refresh_token grant.
Install module from PowerShell Gallery or download release.
# Using Application Secret
C:\PS>Get-GraphToken -tenantId $tenantId -clientId $clientId -secret "IBJ6X~jddSYYnXok1Ryd4cWmGAf6"
# Using Client Certificate
C:\PS>Get-GraphToken -TenantId $tenantid -ClientId $clientId -Certificate "Cert:\CurrentUser\My\FS1G1267565552F2XA055552DA42F0F555CDD3E2"

