minca
ApiSessionFunctions

Function: connectToHome()

function connectToHome(options): Promise<Grant>;

Defined in: packages/core/src/session/connect.ts:376

Opens the home and asks for access. Call it from a click — browsers only allow a popup that a person asked for.

Parameters

ParameterType
optionsConnectOptions

Returns

Promise<Grant>

The grant, checked: signed by the account, made out to this app's key

Throws

When the popup is blocked, closed, denied, or the answer does not check out

On this page