From c997fc06203fce7ab78eb03fd528dce0e6a3ddcf Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Tue, 14 Jul 2026 14:59:07 +0100 Subject: [PATCH] bridgev2/login: add `LoginCookiesParams.Hidden` boolean field --- bridgev2/login.go | 3 +++ bridgev2/matrix/provisioning.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bridgev2/login.go b/bridgev2/login.go index 76b42d4d..3bbb81c0 100644 --- a/bridgev2/login.go +++ b/bridgev2/login.go @@ -183,6 +183,9 @@ type LoginCookiesParams struct { // even if this URL is not reached, but it should only automatically close the webview after // both cookies and the URL match. WaitForURLPattern string `json:"wait_for_url_pattern,omitempty"` + // If set, the client should load the URL and run ExtractJS in a webview that is not shown to the + // user. + Hidden bool `json:"hidden,omitempty"` } type LoginInputFieldType string diff --git a/bridgev2/matrix/provisioning.yaml b/bridgev2/matrix/provisioning.yaml index 6a1c2a57..7c698699 100644 --- a/bridgev2/matrix/provisioning.yaml +++ b/bridgev2/matrix/provisioning.yaml @@ -855,6 +855,9 @@ components: A JavaScript snippet that can extract some or all of the fields. The snippet will evaluate to a promise that resolves when the relevant fields are found. Fields that are not present in the promise result must be extracted another way. + hidden: + type: boolean + description: If set, the client should load the URL and run `extract_js` in a webview that is not shown to the user. fields: type: array description: The list of cookies or other stored data that must be extracted.