Skip to main content

handle_google_disconnect

Function handle_google_disconnect 

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

POST /api/v1/google/disconnect: end the connection to a Google account: Google’s grant is revoked first, then the saved token, the account’s grants and its log go. The same code as the window’s delete. Any agent may ask (the person only signs in); it is noticed in the windows.