isConnected
Will check if there is an active session stored locally (localStorage
or equivalent).
If a session is already available it will be resumed. Client will be connected to Ceramic and Lit without a signature prompt.
Current session and user details will be returned.
How to use?
const res = await orbis.isConnected();
Parameters
None.
Returns
{
status: 200,
did: "did:pkh:..",
details: {
did: "did:pkh:..",
profile: {
pfp: "https://...",
username: "Baptiste",
description: "..."
}
},
result: "Success connecting to the DiD."
}