Skip to main content

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);

Defined in

index.ts:140