PSMatrix/private/Get-MatrixAuthHeaders.ps1

10 lines
227 B
PowerShell
Raw Normal View History

2022-03-27 18:23:38 +00:00
function Get-MatrixAuthHeaders {
param(
[Parameter(Mandatory)]
[SecureString]$AccessToken
)
return @{
Authorization="Bearer " + ($AccessToken | ConvertFrom-SecureString -AsPlainText)
}
}