Function: hasInternetCredentials()
hasInternetCredentials(
options
):Promise
<boolean
>
Checks if internet credentials exist for the given server.
Parameters
• options: string
| BaseOptions
A keychain options objectnormalizeAuthPrompt(options).
Returns
Promise
<boolean
>
Resolves to true
if internet credentials exist, otherwise false
.
Example
const hasCredentials = await Keychain.hasInternetCredentials('https://example.com');
console.log('Internet credentials exist:', hasCredentials);