Function: hasGenericPassword()
hasGenericPassword(
serviceOrOptions?):Promise<boolean>
Checks if generic password exists 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 if a password exists, otherwise false.
Example
const hasPassword = await Keychain.hasGenericPassword();
console.log('Password exists:', hasPassword);