Skip to content

Commit

Permalink
Refactor resetPinAttempts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbuhl93 committed Jul 2, 2021
1 parent 5d74f14 commit 79af9a7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/utils/storage/secureStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ export default class KeyStoreWrapper {
}

public static async resetPinAttempts() : Promise<boolean> {
try {
await RNSecureKeyStore.set(
KeyStoreWrapper.PIN_ATTEMPTS,
"0",
{ accessible: ACCESSIBLE.ALWAYS_THIS_DEVICE_ONLY }
)
return true
} catch {
return false
}
return await KeyStoreWrapper.setPinAttempts("0")
}

public static async removePinAttempts() : Promise<boolean> {
Expand Down

0 comments on commit 79af9a7

Please sign in to comment.