PSMatrix/private/Get-MatrixAuthHeaders.ps1

10 lines
227 B
PowerShell

function Get-MatrixAuthHeaders {
param(
[Parameter(Mandatory)]
[SecureString]$AccessToken
)
return @{
Authorization="Bearer " + ($AccessToken | ConvertFrom-SecureString -AsPlainText)
}
}