Function: hasGenericPassword()
hasGenericPassword(
options
?):Promise
<boolean
>
Checks if generic password exists for the given service.
Parameters
• options?: BaseOptions
A keychain options object.
Returns
Promise
<boolean
>
Resolves to true
if a password exists, otherwise false
.
Example
const hasPassword = await Keychain.hasGenericPassword();
console.log('Password exists:', hasPassword);