@wharfkit/session - v4.0.1
    Preparing search index...

    Class SessionKeyManager

    Manages session key lifecycle including setup, validation, and removal.

    Index
    • Get the permission name for the session key. Uses config.permission if set, otherwise generates from app name or defaults to 'sessionkey'.

      Parameters

      • OptionalappName: string

        Optional application name to generate permission from

      Returns Name

      The permission name

    • Remove the session key from the given session. Removes the key from on-chain permission and unlinks/deletes as needed.

      Parameters

      • session: Session

        The session to remove the session key from

      Returns Promise<void>

      If the session does not have an active session key

      If the permission or key is not found on-chain

    • Update the on-chain linkauth actions to match the current whitelist. Removes extra links and adds missing links to synchronize state.

      Parameters

      • session: Session

        The session with an active session key

      Returns Promise<void>

      If the session does not have an active session key