Skip to content

Commit

Permalink
fix(mobile): fix migration using biometry
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Mar 12, 2024
1 parent fab7c6e commit 1f7bd17
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/mobile/src/hooks/useMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ export const useMigration = () => {
if (isNewSecurityFlow) {
const keychainService = await AsyncStorage.getItem('keychainService');

if (!keychainService) {
throw new Error();
}

jsonstr = await SecureStore.getItemAsync('biometry_' + keychainItemName, {
keychainService,
keychainService: keychainService || 'TKProtected',
});
} else {
jsonstr = await EncryptedStorage.getItem(keychainItemName);
Expand Down

0 comments on commit 1f7bd17

Please sign in to comment.