Last active
November 3, 2018 16:33
-
-
Save adhithiravi/911e237b3298ed46aa372241e7979520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using react-native-device-info to get server information | |
const server = DeviceInfo.getBundleId() | |
Keychain.setInternetCredentials(server, email, password).then(() => { | |
console.log('Saved internet credentials') | |
}).catch(error => { | |
console.log('Could not save credentials') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment