Orbis SDK
  • Introduction
  • Installation
  • Getting started
    • Option 1: Getting started with a Social Feed
    • Option 2: Decentralized communication platform
  • API Documentation
    • orbis.connect()
    • orbis.isConnected()
    • orbis.logout()
    • orbis.createPost()
Powered by GitBook
On this page
  • How to use?
  • Returns
  1. API Documentation

orbis.isConnected()

Checks if there are an active session stored in localStorage. If there is one it will automatically connect to Ceramic with it and allow users to write content without having to re-connect manually.

How to use?

let res = await orbis.isConnected();

Returns

The orbis.isConnected() function also returns the details of the user currently connected.

{
    status: 200,
    did: "did:pkh:..",
    details: {
      did: "did:pkh:..",
      profile: {
        pfp: "https://...",
        username: "Baptiste",
        description: "..."
      }
    },
    result: "Success connecting to the DiD."
  }
Previousorbis.connect()Nextorbis.logout()

Last updated 2 years ago