Skip to content

Commit

Permalink
Fix README.md spelling and missing semicolons (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Petrov authored and vonovak committed May 15, 2019
1 parent f6f5d56 commit d8ed753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ async () => {
await Keychain.setGenericPassword(username, password);

try {
// Retreive the credentials
// Retrieve the credentials
const credentials = await Keychain.getGenericPassword();
if (credentials) {
console.log('Credentials successfully loaded for user ' + credentials.username);
} else {
console.log('No credentials stored')
console.log('No credentials stored');
}
} catch (error) {
console.log('Keychain couldn\'t be accessed!', error);
}
await Keychain.resetGenericPassword()
await Keychain.resetGenericPassword();
}
```

Expand All @@ -51,7 +51,7 @@ Will store the username/password combination in the secure storage. Resolves to

### `getGenericPassword([{ authenticationPrompt, service }])`

Will retreive the username/password combination from the secure storage. Resolves to `{ username, password }` if an entry exists or `false` if it doesn't. It will reject only if an unexpected error is encountered like lacking entitlements or permission.
Will retrieve the username/password combination from the secure storage. Resolves to `{ username, password }` if an entry exists or `false` if it doesn't. It will reject only if an unexpected error is encountered like lacking entitlements or permission.

### `resetGenericPassword([{ service }])`

Expand All @@ -67,7 +67,7 @@ Will check if the username/password combination for server is available in the s

### `getInternetCredentials(server, [{ authenticationPrompt }])`

Will retreive the server/username/password combination from the secure storage. Resolves to `{ username, password }` if an entry exists or `false` if it doesn't. It will reject only if an unexpected error is encountered like lacking entitlements or permission.
Will retrieve the server/username/password combination from the secure storage. Resolves to `{ username, password }` if an entry exists or `false` if it doesn't. It will reject only if an unexpected error is encountered like lacking entitlements or permission.

### `resetInternetCredentials(server)`

Expand Down

0 comments on commit d8ed753

Please sign in to comment.