Share via


Get-JwtToken

Retrieves the user login token.

Syntax

Default (Default)

Get-JwtToken
    [-Audience] <String>
    [<CommonParameters>]

Description

The Get-JwtToken cmdlet retrieves the user or application login information from cache. It calls Add-PowerAppsAccount if the login token expired. Use Get-Help Get-JwtToken -Examples for more detail.

Examples

EXAMPLE 1

Get-JwtToken "https://service.powerapps.com/"

Get login token for app "prod".

Parameters

-Audience

The service audience which is used for login.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.