diff --git a/PSMatrix.psd1 b/PSMatrix.psd1 index 6f8409b..3ad5768 100644 --- a/PSMatrix.psd1 +++ b/PSMatrix.psd1 @@ -70,7 +70,7 @@ PowerShellVersion = '7.0' # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @( - 'Get-MatrixLoginToken' + 'New-MatrixAccessToken' ) # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. diff --git a/public/Get-MatrixLoginToken.ps1 b/public/New-MatrixAccessToken.ps1 similarity index 97% rename from public/Get-MatrixLoginToken.ps1 rename to public/New-MatrixAccessToken.ps1 index 6e1e6d9..62462b3 100644 --- a/public/Get-MatrixLoginToken.ps1 +++ b/public/New-MatrixAccessToken.ps1 @@ -16,7 +16,7 @@ $creds = Get-Credential $token = Get-LoginToken -ServerUrl "https://matrix.example.com" -Credentials $creds #> -function Get-MatrixLoginToken { +function New-MatrixAccessToken { param( [Parameter(Mandatory)] [string]$ServerUrl,