Skip to main content

default

Agent Runtimes


Agent Runtimes / stubs/keytar / default

Variable: default

default: object

Defined in: stubs/keytar.ts:46

Type Declaration

deletePassword

deletePassword: (_service, _account) => Promise<boolean>

Parameters

_service

string

_account

string

Returns

Promise<boolean>

deletePasswordSync

deletePasswordSync: (_service, _account) => boolean

Parameters

_service

string

_account

string

Returns

boolean

findCredentials

findCredentials: (_service) => Promise<object[]>

Parameters

_service

string

Returns

Promise<object[]>

findPassword

findPassword: (_service) => Promise<string | null>

Parameters

_service

string

Returns

Promise<string | null>

getPassword

getPassword: (_service, _account) => Promise<string | null>

Stub for keytar module in browser environments. keytar is a native Node.js module for system keychain access and cannot run in the browser.

Parameters

_service

string

_account

string

Returns

Promise<string | null>

getPasswordSync

getPasswordSync: (_service, _account) => string | null

Parameters

_service

string

_account

string

Returns

string | null

setPassword

setPassword: (_service, _account, _password) => Promise<void>

Parameters

_service

string

_account

string

_password

string

Returns

Promise<void>

setPasswordSync

setPasswordSync: (_service, _account, _password) => void

Parameters

_service

string

_account

string

_password

string

Returns

void