Skip to main content

handle_google_grant

Function handle_google_grant 

Source
pub(crate) async fn handle_google_grant(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<GrantBody>,
) -> Response
Expand description

POST /api/v1/google/grant: turn a service of a connected Google account on for an agent, or off. Any agent may do it (decided: “yes, agents can grant”); it is recorded as the agent that did it, in the account’s log the person reads. Sends, shares, invites and deletes still wait for the person in the host window, which no agent can answer.