Access DIDSession state and properties
Use the following accessors to retrieve information about the current session state:
const resources = session.authorizations; // string[]: List of authorized resources
const cacao = session.cacao; // Cacao: The session CACAO
const did = session.did; // DID: The DID instance (if authorized)
const expiry = session.expireInSecs; // number: Seconds until expiration
const expired = session.isExpired; // boolean: True if session is expired
const sessionId = session.id; // string: DID string associated with the session
const active = session.hasSession; // boolean: Whether a session is active