ISMESocialAccount
ISMESocialAccount is used to manage the personal social accounts of DID users. You can access the instance of ISMESocialAccount through client.socialAccount
Method
list
List all social accounts bound to a DID
Type
interface SocialAccountModel {
  account: string
  type: string
  proof: string
  verifier_key: string
  msghash: string
}
class ISMESocialAccount {
  list(identifier?: string): Promise<WithMeta<SocialAccountModel>[]>
}
Details
If identifier is not passed, the current logged in DID will be used.
add
Add a social account record
Type
class ISMESocialAccount {
  add(record: SocialAccountModel): Promise<void>
}
remove
Add a social account record
Type
class ISMESocialAccount {
  remove(dataId: string): Promise<void>
}