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.