Questions tagged [react-native-keychain]

33 questions
0
votes
0 answers

JWT authentification in react native

As a React-Native beginner, I follow this tutorial to implement JWT authentification : https://blog.logrocket.com/react-native-jwt-authentication-using-axios-interceptors/ Unfortunately, the result is the following : Keychain Error: Cannot read…
Charpa
  • 1
0
votes
0 answers

How to prompt device passcode as a fallback for biometrics when using react-native-keychain

I am using react-native-keychain to manage a biometric functionality in my app. I have a custom pin set up which I want to remove and use the device passcode as a fallback to the biometrics. Either if the device does not have biometrics or…
Aaeron
  • 23
  • 4
0
votes
0 answers

react native Generated app-debug.apk file working in android emulator but not working in physical mobile device

I have created app-debug.apk file successfully from the following command : native bundle command (full command) ./gradlew assembleDebug. This debug.apk is not working in mobile device after installation. on click on app in mobile, its showing…
0
votes
1 answer

Saving jwt token in react native

const response = await axios.post(`${config.END_POINT}/users`, formData, { headers: { 'Content-Type': 'multipart/form-data' } }) await Keychain.setGenericPassword('token', response.token) /*…
Yash Sharma
  • 232
  • 2
  • 12
0
votes
0 answers

Why does isSensorAvailable return true when device has disabled biometics in react native (android)

Context: When using the react-native-keychain package to getGenericPassword, you should first verify that the device's biometrics are available so that you don't cause errors. To check if biometrics are available, we use react-native-biometrics…
0
votes
0 answers

react-native-keychain library update from v8.0.0 to 8.1.1

I'm on RN 0.66.0 and I'm trying to update from v8.0.0 to v8.1.1. iOS is working perfectly, but when I try to launch in Android I get the error Attempt to invoke virtual method 'boolean…
Nile
  • 1
0
votes
0 answers

Xcode pr-build script to store data in keychain

I have a scenario where I've some info that needs to be stored in the keychain at the build time. Is there any way to achieve the same with the help of scheme -> pre-build -> run script? Is it feasible to achieve this? As I've only needed to store…
0
votes
0 answers

Get the value of a specified field from a keychain with multiple key-value pairs

I want to share my keychain between 2 apps with react-native-keychain: I have App1 (developed in a programming language) which sets the keychain with multiple key-value pairs. And I have App2 (react native) where I have to retrieve a specified field…
0
votes
1 answer

React Native Keychain onPress function error

I've created an async const function for login purposes and after the credentials are set locally via the setGenericPassword method, the app navigates to the home screen. I want to execute this login function whenever the user presses on a specific…
0
votes
1 answer

Android Face ID authentication in React-Native

I am developing a React-Native Android app which requires biometrics authentication. Right now I am using 'react-native-keychain' library for that purpose. I integrated Fingerprint and everything works fine. But despite that I have saved Face unlock…
0
votes
0 answers

react native Keychain throw error in xiaomi redmi 9c

I build the app but after I try to login I get an error related to react native keychain. In another phone, it works fine but in Xiaomi redmi9c it throws an error. I don't understand why and I could find much information about it. Here is the error…
FaFa
  • 358
  • 2
  • 16
0
votes
1 answer

react-native-keychain crashing while using getGenericPassword function

I have a react-native app, and I'm trying to recover the user credentials after the timeout (token expiration). But when I use the function "getGenericPassword()" my app doesn't get the credentials, the app continues running but I can't get the…
0
votes
1 answer

Error when trying to use React Native Keychain

I am trying to use React Native Keychain in my app. I just install it yarn add react-native-keychain and then run yarn run android and get this error: > Task :react-native-keychain:compileDebugJavaWithJavac FAILED Deprecated Gradle features were…
davidaap
  • 1,569
  • 1
  • 18
  • 43
0
votes
2 answers

React Native conditional rendering based on token without storage inside component state

I am currently using react-native-keychain to securely store access tokens. This is working well under most circumstances, but I am having problems trying to conditionally render a component based on the token being available or not. Currently my…
5eb
  • 14,798
  • 5
  • 21
  • 65
0
votes
0 answers

Can you detect no finger enrolled with react-native-keychain

Looking for an error message similar to "could not start because Fingerprint Scanner has no enrolled fingers".