From d25f5beaf7cc9f67a730c87657b302c9b7529f9a Mon Sep 17 00:00:00 2001 From: MazurDorian Date: Tue, 1 Oct 2024 23:17:55 +0300 Subject: [PATCH] chore: remove tt.tsx --- KeychainExample/tt.tsx | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 KeychainExample/tt.tsx diff --git a/KeychainExample/tt.tsx b/KeychainExample/tt.tsx deleted file mode 100644 index 70b238d6..00000000 --- a/KeychainExample/tt.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import * as Keychain from 'react-native-keychain'; - -async () => { - const username = 'zuck'; - const password = 'poniesRgr8'; - - // Store the credentials - await Keychain.setGenericPassword(username, password); - - try { - // Retrieve the credentials - const credentials = await Keychain.getGenericPassword(); - if (credentials) { - console.log( - 'Credentials successfully loaded for user ' + credentials.username - ); - } else { - console.log('No credentials stored'); - } - } catch (error) { - console.log("Keychain couldn't be accessed!", error); - } - await Keychain.resetGenericPassword(); -};