Citrix Virtual Apps and Desktops SDK

Update-TrustBearerToken

Requests a renewed bearer token.

Syntax

Update-TrustBearerToken
      [<CitrixCommonParameters>]
      [<CommonParameters>]
<!--NeedCopy-->

Description

Requests a renewed bearer token.

Examples

EXAMPLE 1

Obtains a bearer token for the current user and immediately refreshes it.

$bearerData = New-TrustBearerToken
Update-TrustBearerToken -BearerToken $bearerData.Token
<!--NeedCopy-->

Parameters

CitrixCommonParameters

This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.

CommonParameters

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

Inputs

String

You can pipe the bearer token string into this command.

Outputs

None

By default, this cmdlet returns no output.

Update-TrustBearerToken