Skip to content
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

How do i reset the pin. #207

Open
Yasir5247 opened this issue Jun 28, 2022 · 1 comment
Open

How do i reset the pin. #207

Yasir5247 opened this issue Jun 28, 2022 · 1 comment

Comments

@Yasir5247
Copy link

any example would be highly appreciated

@echagnas
Copy link

Hi, do you want to reset the pinCode in the keystore of the OS, or do you want to reset the code entered in the UI, the "dots" ?
To reset in the keystore this is on the wiki page, in the first lines:

One can also use a provided function to delete a PIN code previously set in the Keychain. The service name parameter is optional. If provided, it should match the pinCodeKeychainName property.

import {deleteUserPinCode} from '@haskkor/react-native-pincode'
await deleteUserPinCode(serviceName)
If needed, the internal states that record the number of attemps and time of last attempt can be reset in addition to user pin code deletion.

import {resetPinCodeInternalStates} from '@haskkor/react-native-pincode'
await resetPinCodeInternalStates()

But I don't know how to reset the pinCode entered, so reset the dots... I'm searching the solution at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants