Options
All
  • Public
  • Public/Protected
  • All
Menu

Type describing a link session that can create a eosjs compatible signature provider and transact for a specific auth.

Hierarchy

  • LinkSession

Index

Properties

auth: PermissionLevel

The EOSIO auth (a.k.a. permission level) the session can sign for.

chainId: ChainId

Id of the chain where the session is valid.

identifier: Name

App identifier that owns the session.

link: Link

The underlying link instance used by the session.

metadata: {}

Arbitrary metadata that will be serialized with the session.

Type declaration

  • [key: string]: any
publicKey: PublicKey

The public key the session can sign for.

type: string

Session type, e.g. 'channel'.

Accessors

  • get client(): APIClient

Methods

  • makeSignatureProvider(): any
  • Creates a eosjs compatible signature provider that can sign for the session public key.

    Returns any

  • remove(): Promise<void>
  • Convenience, remove this session from associated Link storage if set. Equivalent to:

    session.link.removeSession(session.identifier, session.auth, session.chainId)
    

    Returns Promise<void>

  • serialize(): SerializedLinkSession
  • Returns a JSON-encodable object that can be used recreate the session.

    Returns SerializedLinkSession

Generated using TypeDoc