diff --git a/functions/public/Close-Session.ps1 b/functions/public/Close-Session.ps1 new file mode 100644 index 0000000..2517d3c --- /dev/null +++ b/functions/public/Close-Session.ps1 @@ -0,0 +1,20 @@ +function Close-Session { + <# + .SYNOPSIS + + Removes (revokes) token. + #> + [CmdletBinding()] + param() + process { + $_params = @{ + Controller = [PS.IPAM.controllers]::user + Method = "DELETE" + } + + Invoke-Request @_params + + $script:psipamSession = $null + } +} +Export-ModuleMember Close-Session \ No newline at end of file