ApiSessionFunctions
Function: offerToSave()
function offerToSave(
id,
password,
name?
): Promise<boolean>;Defined in: packages/core/src/session/credentials.ts:28
Offers a credential to the browser's password manager. Best effort: Firefox and Safari have no such API, and a manager may decline.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | What to file it under, which is what the user will see in the vault |
password | string | - |
name? | string | A longer label, where the manager shows one |
Returns
Promise<boolean>
Whether the browser was asked at all