WebKit2.AuthenticationRequest.prototype.can_save_credentials

function can_save_credentials(): Boolean {
    // Gjs wrapper for webkit_authentication_request_can_save_credentials()
}
  

Determine whether the authentication method associated with this WebKit2.AuthenticationRequest should allow the storage of credentials. This will return false if webkit doesn't support credential storing or if private browsing is enabled.

Since 2.2

Returns

true if webkit can store credentials or false otherwise.