Function: getGenericPassword()
getGenericPassword(
options?):Promise<false|UserCredentials>
Fetches the username and password combination for the given service.
Parameters
• options?: GetOptions
A keychain options object.
Returns
Promise<false | UserCredentials>
Resolves to an object containing service, username, password, and storage when successful, or false on failure.
Example
const credentials = await Keychain.getGenericPassword();
if (credentials) {
console.log('Credentials successfully loaded for user ' + credentials.username);
} else {
console.log('No credentials stored');
}