-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question regarding easy-peasy & keychain usage #31
Comments
Hi @rajinpangkalpundai So You can store mobile or other info as username and password and when you get the stored data here you can change like this export const getLoginCredentials = async () => {
try {
const credentials = await Keychain.getGenericPassword();
console.log("keychain get data ", credentials);
if (credentials) {
return {YOURKEYONE: credentials.username, YOURKEYTWO:credentials.password};
}
return false;
} catch (e) {
console.log("Cannot retrieve keychain data", e);
return false;
}
}; replace YOURKEYONE & YOURKEYTWO to your custom keys. |
i've checked react-native-keychain, and yes, it has limitation to only store in 'username' and 'password'. Another question is: Thank you for your quick reply, i really appreciate it. |
Yes you can use it in whatever way you want. |
Awesome! thanks for your help |
Hello @HarishJangra ,
I have a project that uses OTP as the authenticator to log in into the app. Could you please show me the Login Navigation Flow and how do i use easy-peasy? i want to store the phone number and token to the local storage, while your initial boilerplate uses username and password instead. Kindly need your help asap. btw, thank you very much for the repo, it really helps cutting down some development time.
The text was updated successfully, but these errors were encountered: