Skip to main content

Function: restoreSession()

restoreSession(did?): Promise<null | { agent: Agent; session: OAuthSession; user: ChiveUser; }>

Defined in: web/lib/auth/oauth-client.ts:299

Restore an existing session.

Parameters

did?

string

Optional DID to restore (uses any stored session if not provided)

Returns

Promise<null | { agent: Agent; session: OAuthSession; user: ChiveUser; }>

Session result if restored, null if no session

Remarks

Attempts to restore a session from IndexedDB storage.