Public/Get-DuneSession.ps1

<#
.SYNOPSIS
Return the current Dune session object.

.DESCRIPTION
Returns the current script-scoped `DuneSession` object that represents the active authenticated session. Useful to inspect tokens or session metadata.

.EXAMPLE
PS> Get-DuneSession
Returns the active Dune session object stored in script scope.
#>

function Get-DuneSession {
    return $script:DuneSession
}