🎉 Ryft Explorer beta is released. Learn more →
AboutAboutProtocol Explorer ↗Protocol Explorer ↗ (opens in a new tab)
  • Introduction
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Introduction
  • About
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Protocol Explorer ↗ (opens in a new tab)

On This Page

  • Returns
Question? Give us feedback → (opens in a new tab)Edit this page
API
utils
Connect

ryft.connect()

The connect function will create a new session that will be used to write data. Sessions will stay valid for 31 days by default.

let res = await ryft.connect()

Returns

{
  status: 200,
  did: "did:pkh:..",
  details: {
    did: "did:pkh:..",
    profile: {
      pfp: "https://...",
      username: "Alice",
      description: "..."
    }
  },
  result: "Success connecting to the DiD."
}
GetreactionDecryptmessage

Ryft | Docs