oyyq99999 / react-native-secure-storage

A secure AsyncStorage implementation
MIT License
74 stars 54 forks source link

Problem on real devices #10

Open fkrauthan opened 5 years ago

fkrauthan commented 5 years ago

I am currently trying react-native-secure-storage and run into the following issue. On my local system everything runs fine but when running on a real device the call to setItem fails with the error message The user name or passphrase you entered is not correct.

My config:

const authSecureConfig = {
    accessControl: ACCESS_CONTROL.BIOMETRY_ANY_OR_DEVICE_PASSCODE,
    accessible: ACCESSIBLE.WHEN_UNLOCKED,
    authenticationPrompt: 'continue using qroll',
    service: 'qroll',
    authenticateType: AUTHENTICATION_TYPE.DEVICE_PASSCODE_OR_BIOMETRICS,
};

My code that throws the error:

await SecureStorage.setItem('auth0-refresh-token', credentials.refreshToken, authSecureConfig);

I do not get any popups or any other form of dialog to enter anything. Any ideas what this could be caused by? The iPad I am testing on has no TouchId but is secured with a passcode.