minca
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

ParameterTypeDescription
idstringWhat to file it under, which is what the user will see in the vault
passwordstring-
name?stringA longer label, where the manager shows one

Returns

Promise<boolean>

Whether the browser was asked at all

On this page