mirror of
https://github.com/status-im/react-native-keychain.git
synced 2025-01-27 21:45:28 +00:00
bring back setUsername
that was removed by mistake
This commit is contained in:
parent
43e5512cab
commit
33eb25baf3
13
index.js
13
index.js
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user