Skip to main content
Version: 9.1.0

Function: setInternetCredentials()

setInternetCredentials(server, username, password, options?): Promise<false | Result>

Saves the internet credentials for the given server.

Parameters

server: string

The server URL.

username: string

The username or e-mail to be saved.

password: string

The password to be saved.

options?: SetOptions

A keychain options object.

Returns

Promise<false | Result>

Resolves to an object containing service and storage when successful, or false on failure.

Example

await Keychain.setInternetCredentials('https://example.com', 'username', 'password');

Defined in

index.ts:170