Skip to main content
Version: 9.0.0

Function: resetGenericPassword()

resetGenericPassword(serviceOrOptions?): Promise<boolean>

Deletes all generic password keychain entries for the given service.

Parameters

serviceOrOptions?: string | Partial<object & BaseOptions>

A keychain options object or a service name string.

Returns

Promise<boolean>

Resolves to true when successful, otherwise false.

Example

const success = await Keychain.resetGenericPassword();
console.log('Password reset successful:', success);

Defined in

index.ts:323