Skip to main content

Function: hasGenericPassword()

hasGenericPassword(serviceOrOptions?): Promise<boolean>

Checks if generic password exists for the given service.

Parameters

serviceOrOptions?: string | BaseOptions

A keychain options object or a service name string.

Returns

Promise<boolean>

Resolves to true if a password exists, otherwise false.

Example

const hasPassword = await Keychain.hasGenericPassword();
console.log('Password exists:', hasPassword);

Defined in

index.ts:93