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."
}