Get-PnPGraphAccessToken
SYNOPSIS
Returns the current OAuth Access token for the Microsoft Graph API
SYNTAX
Get-PnPGraphAccessToken [-Decoded]
DESCRIPTION
Gets the OAuth 2.0 Access Token to consume the Microsoft Graph API
EXAMPLES
EXAMPLE 1
Get-PnPGraphAccessToken
Gets the OAuth 2.0 Access Token to consume the Microsoft Graph API
EXAMPLE 2
Get-PnPGraphAccessToken -Decoded
Gets the full OAuth 2.0 Token to consume the Microsoft Graph API
PARAMETERS
-Decoded
Returns the access token in a decoded manner
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False