Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Identity

Implements

  • Identity

Index

Constructors

  • new Identity(__namedParameters: IdentityConstructorOptions): Identity
  • Parameters

    • __namedParameters: IdentityConstructorOptions

    Returns Identity

Properties

address: string
defaultUsername?: string
profile?: Profile
usernames: string[]

Methods

  • appPrivateKey(appDomain: string): string
  • Parameters

    • appDomain: string

    Returns string

  • fetchNames(fetchFn?: FetchFn): Promise<string[]>
  • Parameters

    Returns Promise<string[]>

  • makeAuthResponse(__namedParameters: { appDomain: string; gaiaUrl: string; scopes?: string[]; stxAddress?: string; transitPublicKey: string }): Promise<string>
  • Parameters

    • __namedParameters: { appDomain: string; gaiaUrl: string; scopes?: string[]; stxAddress?: string; transitPublicKey: string }
      • appDomain: string
      • gaiaUrl: string
      • Optional scopes?: string[]
      • Optional stxAddress?: string
      • transitPublicKey: string

    Returns Promise<string>

  • profileUrl(gaiaUrl: string): Promise<string>
  • Parameters

    • gaiaUrl: string

    Returns Promise<string>

  • refresh(opts?: RefreshOptions): Promise<void>
  • Fetch existing information related to this identity, like username and profile information

    Parameters

    • opts: RefreshOptions = ...

    Returns Promise<void>

Generated using TypeDoc