bring back `setUsername` that was removed by mistake

This commit is contained in:
Igor Mandrigin 2019-01-15 13:22:05 +01:00
parent 43e5512cab
commit 33eb25baf3
1 changed files with 13 additions and 0 deletions

View File

@ -203,6 +203,19 @@ export function setGenericPassword(
);
}
/**
* Saves the `username` for further use on get requests.
* @param {string} username Associated username or e-mail to be saved.
* @return {Promise} Resolves to `true` when successful
*/
export function setUsername(
username: string
): Promise {
return RNKeychainManager.setUsername(
username
);
}
/**
* Fetches login combination for `service`.
* @param {string|object} serviceOrOptions Reverse domain name qualifier for the service, defaults to `bundleId` or an options object.