mirror of
https://github.com/status-im/react-native-keychain.git
synced 2025-03-03 22:30:37 +00:00
add missing await
in readme (#113)
This commit is contained in:
parent
3c54d65441
commit
43b1f870f0
@ -28,7 +28,7 @@ async () => {
|
||||
|
||||
try {
|
||||
// Retreive the credentials
|
||||
const credentials = Keychain.getGenericPassword();
|
||||
const credentials = await Keychain.getGenericPassword();
|
||||
if (credentials) {
|
||||
console.log('Credentials successfully loaded for user ' + credentials.username);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user