Skip to content

RemoveAll Does Not Work With iOS Security++ #52

Description

@pradumnk-mahanta

This is strange though, the Remove All Options do not work with iOS Security keys.

With,

let secureStorage = new SecureStorage();
console.log(secureStorage.getSync({ key: "KEY" }));
secureStorage.removeAllSync();
console.log(secureStorage.getSync({ key: "KEY" }));

Will log,
VALUE
and
undefined
respectively,

But for values set with,
let secureStorage = new SecureStorage(kSecAttrAccessibleWhenUnlockedThisDeviceOnly);

the following,

console.log(secureStorage.getSync({ key: "KEY" }));
secureStorage.removeAllSync();
console.log(secureStorage.getSync({ key: "KEY" }));

will log,
VALUE
and
VALUE
respectively,

Any feedback on why this may be the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions