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