Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit 4dcc1d6

Browse files
committed
chore: rename keychainAccessibility constant
1 parent deb459e commit 4dcc1d6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/EncryptedStorage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* eslint-disable no-dupe-class-members */
22

33
import { NativeModules } from 'react-native';
4-
import { keychainAccessibility } from './constants';
4+
import { KeychainAccessibility } from './constants';
55

66
const { RNEncryptedStorage } = NativeModules;
77

88
if (!RNEncryptedStorage) {
99
throw new Error('RNEncryptedStorage is undefined');
1010
}
1111

12-
type KeychainAccessibilityKeys = keyof typeof keychainAccessibility;
12+
type KeychainAccessibilityKeys = keyof typeof KeychainAccessibility;
1313

1414
export type EncryptedStorageOptions = {
1515
/**
@@ -21,7 +21,7 @@ export type EncryptedStorageOptions = {
2121
*
2222
* Default value: `kSecAttrAccessibleAfterFirstUnlock`
2323
*/
24-
keychainAccessibility?: typeof keychainAccessibility[KeychainAccessibilityKeys];
24+
keychainAccessibility?: typeof KeychainAccessibility[KeychainAccessibilityKeys];
2525
/**
2626
* A string for identifying a set of storage items. Should not contain path separators.
2727
*

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Values you use with the `kSecAttrAccessible` attribute key, listed from most to least restrictive.
33
*/
4-
export const keychainAccessibility = {
4+
export const KeychainAccessibility = {
55
/**
66
* The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.
77
*/

0 commit comments

Comments
 (0)