This repository was archived by the owner on Nov 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* eslint-disable no-dupe-class-members */
22
33import { NativeModules } from 'react-native' ;
4- import { keychainAccessibility } from './constants' ;
4+ import { KeychainAccessibility } from './constants' ;
55
66const { RNEncryptedStorage } = NativeModules ;
77
88if ( ! RNEncryptedStorage ) {
99 throw new Error ( 'RNEncryptedStorage is undefined' ) ;
1010}
1111
12- type KeychainAccessibilityKeys = keyof typeof keychainAccessibility ;
12+ type KeychainAccessibilityKeys = keyof typeof KeychainAccessibility ;
1313
1414export 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 *
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments