Skip to main content

Function: hasInternetCredentials()

hasInternetCredentials(serverOrOptions): Promise<boolean>

Checks if internet credentials exist for the given server.

Parameters

serverOrOptions: string | BaseOptions

A keychain options object or a server name string.

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:148