Secret.Item.prototype.set_secret

function set_secret(value: Secret.Value, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for secret_item_set_secret()
}
  

Set the secret value of this item.

Each item has a single secret which might be a password or some other secret binary value.

This function returns immediately and completes asynchronously.

value

a new secret value

cancellable

optional cancellation object

callback

called when the operation completes