Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Identity

Index

Constructors

constructor

  • new Identity(__namedParameters: IdentityConstructorOptions): Identity

Properties

address

address: string

Optional defaultUsername

defaultUsername: string

keyPair

Optional profile

profile: Profile

usernames

usernames: string[]

Methods

appPrivateKey

  • appPrivateKey(appDomain: string): string

fetchNames

  • fetchNames(): Promise<string[]>

makeAuthResponse

  • 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

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

refresh

  • 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