expo-secure-store 14.1.1 → 14.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/android/build.gradle +2 -2
  3. package/build/SecureStore.d.ts +6 -0
  4. package/build/SecureStore.d.ts.map +1 -1
  5. package/build/SecureStore.js.map +1 -1
  6. package/expo-module.config.json +1 -1
  7. package/ios/SecureStoreModule.swift +7 -1
  8. package/ios/SecureStoreOptions.swift +3 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.module → 14.2.1/expo.modules.securestore-14.2.1.module} +7 -7
  10. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.module.md5 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.module.sha1 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.module.sha256 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.module.sha512 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.pom → 14.2.1/expo.modules.securestore-14.2.1.pom} +1 -1
  15. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.pom.md5 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.pom.sha1 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.pom.sha256 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.2.1/expo.modules.securestore-14.2.1.pom.sha512 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/maven-metadata.xml +4 -4
  20. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/maven-metadata.xml.md5 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/maven-metadata.xml.sha1 +1 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/maven-metadata.xml.sha256 +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/maven-metadata.xml.sha512 +1 -1
  24. package/package.json +3 -3
  25. package/src/SecureStore.ts +7 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.module.md5 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.module.sha1 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.module.sha256 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.module.sha512 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.pom.md5 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.pom.sha1 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.pom.sha256 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.securestore/14.1.1/expo.modules.securestore-14.1.1.pom.sha512 +0 -1
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1-sources.jar → 14.2.1/expo.modules.securestore-14.2.1-sources.jar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1-sources.jar.md5 → 14.2.1/expo.modules.securestore-14.2.1-sources.jar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1-sources.jar.sha1 → 14.2.1/expo.modules.securestore-14.2.1-sources.jar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1-sources.jar.sha256 → 14.2.1/expo.modules.securestore-14.2.1-sources.jar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1-sources.jar.sha512 → 14.2.1/expo.modules.securestore-14.2.1-sources.jar.sha512} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.aar → 14.2.1/expo.modules.securestore-14.2.1.aar} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.aar.md5 → 14.2.1/expo.modules.securestore-14.2.1.aar.md5} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.aar.sha1 → 14.2.1/expo.modules.securestore-14.2.1.aar.sha1} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.aar.sha256 → 14.2.1/expo.modules.securestore-14.2.1.aar.sha256} +0 -0
  43. /package/local-maven-repo/host/exp/exponent/expo.modules.securestore/{14.1.1/expo.modules.securestore-14.1.1.aar.sha512 → 14.2.1/expo.modules.securestore-14.2.1.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 14.2.1 — 2025-04-14
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 14.2.0 — 2025-04-11
18
+
19
+ ### 🎉 New features
20
+
21
+ - [iOS] Added support for access groups. ([#36056](https://github.com/expo/expo/pull/36056) by [@chrsmys](https://github.com/chrsmys))
22
+
13
23
  ## 14.1.1 — 2025-04-09
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '14.1.1'
7
+ version = '14.2.1'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.securestore"
11
11
  defaultConfig {
12
12
  versionCode 17
13
- versionName '14.1.1'
13
+ versionName '14.2.1'
14
14
  }
15
15
  }
16
16
 
@@ -72,6 +72,12 @@ export type SecureStoreOptions = {
72
72
  * @platform ios
73
73
  */
74
74
  keychainAccessible?: KeychainAccessibilityConstant;
75
+ /**
76
+ * Specifies the access group the stored entry belongs to.
77
+ * @see Apple's documentation on [Sharing access to keychain items among a collection of apps](https://developer.apple.com/documentation/security/sharing-access-to-keychain-items-among-a-collection-of-apps).
78
+ * @platform ios
79
+ */
80
+ accessGroup?: string;
75
81
  };
76
82
  /**
77
83
  * Returns whether the SecureStore API is enabled on the current device. This does not check the app
@@ -1 +1 @@
1
- {"version":3,"file":"SecureStore.d.ts","sourceRoot":"","sources":["../src/SecureStore.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAGnD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,6BAAkE,CAAC;AAGpG;;;GAGG;AACH,eAAO,MAAM,mCAAmC,EAAE,6BACG,CAAC;AAGtD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,EAAE,6BAAsD,CAAC;AAG5E;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BACG,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,6BACG,CAAC;AAG1C;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,6BAA6D,CAAC;AAG1F;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,6BACG,CAAC;AAGjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;;;;;;;;OAeG;IAC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IAC3C,OAAO,eAAe,CAAC,6BAA6B,EAAE,CAAC;AACzD,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,0HAA0H,CAC3H,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,GAAW;IAC7B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,IAAI,CACV,oDAAoD,iBAAiB,sGAAsG,CAC5K,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import ExpoSecureStore from './ExpoSecureStore';\nimport { byteCountOverLimit, VALUE_BYTES_LIMIT } from './byteCounter';\n\nexport type KeychainAccessibilityConstant = number;\n\n// @needsAudit\n/**\n * The data in the keychain item cannot be accessed after a restart until the device has been\n * unlocked once by the user. This may be useful if you need to access the item when the phone\n * is locked.\n */\nexport const AFTER_FIRST_UNLOCK: KeychainAccessibilityConstant = ExpoSecureStore.AFTER_FIRST_UNLOCK;\n\n// @needsAudit\n/**\n * Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring\n * from a backup.\n */\nexport const AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * The data in the keychain item can always be accessed regardless of whether the device is locked.\n * This is the least secure option.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.\n */\nexport const ALWAYS: KeychainAccessibilityConstant = ExpoSecureStore.ALWAYS;\n\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to\n * store an entry. If the user removes their passcode, the entry will be deleted.\n */\nexport const WHEN_PASSCODE_SET_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.\n */\nexport const ALWAYS_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * The data in the keychain item can be accessed only while the device is unlocked by the user.\n */\nexport const WHEN_UNLOCKED: KeychainAccessibilityConstant = ExpoSecureStore.WHEN_UNLOCKED;\n\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from\n * a backup.\n */\nexport const WHEN_UNLOCKED_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;\n\n// @needsAudit\nexport type SecureStoreOptions = {\n /**\n * - Android: Equivalent of the public/private key pair `Alias`.\n * - iOS: The item's service, equivalent to [`kSecAttrService`](https://developer.apple.com/documentation/security/ksecattrservice/).\n * > If the item is set with the `keychainService` option, it will be required to later fetch the value.\n */\n keychainService?: string;\n /**\n * Option responsible for enabling the usage of the user authentication methods available on the device while\n * accessing data stored in SecureStore.\n * - Android: Equivalent to [`setUserAuthenticationRequired(true)`](https://developer.android.com/reference/android/security/keystore/KeyGenParameterSpec.Builder#setUserAuthenticationRequired(boolean))\n * (requires API 23).\n * - iOS: Equivalent to [`biometryCurrentSet`](https://developer.apple.com/documentation/security/secaccesscontrolcreateflags/2937192-biometrycurrentset).\n * Complete functionality is unlocked only with a freshly generated key - this would not work in tandem with the `keychainService`\n * value used for the others non-authenticated operations.\n *\n * This option works slightly differently across platforms: On Android, user authentication is required for all operations.\n * On iOS, the user is prompted to authenticate only when reading or updating an existing value (not when creating a new one).\n *\n * Warning: This option is not supported in Expo Go when biometric authentication is available due to a missing NSFaceIDUsageDescription.\n * In release builds or when using continuous native generation, make sure to use the `expo-secure-store` config plugin.\n *\n */\n requireAuthentication?: boolean;\n /**\n * Custom message displayed to the user while `requireAuthentication` option is turned on.\n */\n authenticationPrompt?: string;\n /**\n * Specifies when the stored entry is accessible, using iOS's `kSecAttrAccessible` property.\n * @see Apple's documentation on [keychain item accessibility](https://developer.apple.com/documentation/security/ksecattraccessible/).\n * @default SecureStore.WHEN_UNLOCKED\n * @platform ios\n */\n keychainAccessible?: KeychainAccessibilityConstant;\n};\n\n// @needsAudit\n/**\n * Returns whether the SecureStore API is enabled on the current device. This does not check the app\n * permissions.\n *\n * @return Promise which fulfils with a `boolean`, indicating whether the SecureStore API is available\n * on the current device. Currently, this resolves `true` on Android and iOS only.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return !!ExpoSecureStore.getValueWithKeyAsync;\n}\n\n// @needsAudit\n/**\n * Delete the value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if the value can't be deleted.\n */\nexport async function deleteItemAsync(\n key: string,\n options: SecureStoreOptions = {}\n): Promise<void> {\n ensureValidKey(key);\n\n await ExpoSecureStore.deleteValueWithKeyAsync(key, options);\n}\n\n// @needsAudit\n/**\n * Reads the stored value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.\n *\n * > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.\n * > After a key has been invalidated, it becomes impossible to read its value.\n * > This only applies to values stored with `requireAuthentication` set to `true`.\n */\nexport async function getItemAsync(\n key: string,\n options: SecureStoreOptions = {}\n): Promise<string | null> {\n ensureValidKey(key);\n return await ExpoSecureStore.getValueWithKeyAsync(key, options);\n}\n\n// @needsAudit\n/**\n * Stores a key–value pair.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if value cannot be stored on the device.\n */\nexport async function setItemAsync(\n key: string,\n value: string,\n options: SecureStoreOptions = {}\n): Promise<void> {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(\n `Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`\n );\n }\n\n await ExpoSecureStore.setValueWithKeyAsync(value, key, options);\n}\n\n/**\n * Stores a key–value pair synchronously.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when the `requireAuthentication` option is set to `true` until the user authenticates.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n */\nexport function setItem(key: string, value: string, options: SecureStoreOptions = {}): void {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(\n `Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`\n );\n }\n\n return ExpoSecureStore.setValueWithKeySync(value, key, options);\n}\n\n/**\n * Synchronously reads the stored value associated with the provided key.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when reading a value with `requireAuthentication`\n * > option set to `true` until the user authenticates.\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return Previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated.\n */\nexport function getItem(key: string, options: SecureStoreOptions = {}): string | null {\n ensureValidKey(key);\n return ExpoSecureStore.getValueWithKeySync(key, options);\n}\n\n/**\n * Checks if the value can be saved with `requireAuthentication` option enabled.\n * @return `true` if the device supports biometric authentication and the enrolled method is sufficiently secure. Otherwise, returns `false`. Always returns false on tvOS.\n * @platform android\n * @platform ios\n */\nexport function canUseBiometricAuthentication(): boolean {\n return ExpoSecureStore.canUseBiometricAuthentication();\n}\n\nfunction ensureValidKey(key: string) {\n if (!isValidKey(key)) {\n throw new Error(\n `Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, \".\", \"-\", and \"_\".`\n );\n }\n}\n\nfunction isValidKey(key: string) {\n return typeof key === 'string' && /^[\\w.-]+$/.test(key);\n}\n\nfunction isValidValue(value: string) {\n if (typeof value !== 'string') {\n return false;\n }\n if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {\n console.warn(\n `Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`\n );\n }\n return true;\n}\n"]}
1
+ {"version":3,"file":"SecureStore.js","sourceRoot":"","sources":["../src/SecureStore.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAItE,cAAc;AACd;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAkC,eAAe,CAAC,kBAAkB,CAAC;AAEpG,cAAc;AACd;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAC9C,eAAe,CAAC,mCAAmC,CAAC;AAEtD,cAAc;AACd;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAkC,eAAe,CAAC,MAAM,CAAC;AAE5E,cAAc;AACd;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAC7C,eAAe,CAAC,k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MIT } from './byteCounter';\n\nexport type KeychainAccessibilityConstant = number;\n\n// @needsAudit\n/**\n * The data in the keychain item cannot be accessed after a restart until the device has been\n * unlocked once by the user. This may be useful if you need to access the item when the phone\n * is locked.\n */\nexport const AFTER_FIRST_UNLOCK: KeychainAccessibilityConstant = ExpoSecureStore.AFTER_FIRST_UNLOCK;\n\n// @needsAudit\n/**\n * Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring\n * from a backup.\n */\nexport const AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * The data in the keychain item can always be accessed regardless of whether the device is locked.\n * This is the least secure option.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.\n */\nexport const ALWAYS: KeychainAccessibilityConstant = ExpoSecureStore.ALWAYS;\n\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to\n * store an entry. If the user removes their passcode, the entry will be deleted.\n */\nexport const WHEN_PASSCODE_SET_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.\n */\nexport const ALWAYS_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;\n\n// @needsAudit\n/**\n * The data in the keychain item can be accessed only while the device is unlocked by the user.\n */\nexport const WHEN_UNLOCKED: KeychainAccessibilityConstant = ExpoSecureStore.WHEN_UNLOCKED;\n\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from\n * a backup.\n */\nexport const WHEN_UNLOCKED_THIS_DEVICE_ONLY: KeychainAccessibilityConstant =\n ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;\n\n// @needsAudit\nexport type SecureStoreOptions = {\n /**\n * - Android: Equivalent of the public/private key pair `Alias`.\n * - iOS: The item's service, equivalent to [`kSecAttrService`](https://developer.apple.com/documentation/security/ksecattrservice/).\n * > If the item is set with the `keychainService` option, it will be required to later fetch the value.\n */\n keychainService?: string;\n /**\n * Option responsible for enabling the usage of the user authentication methods available on the device while\n * accessing data stored in SecureStore.\n * - Android: Equivalent to [`setUserAuthenticationRequired(true)`](https://developer.android.com/reference/android/security/keystore/KeyGenParameterSpec.Builder#setUserAuthenticationRequired(boolean))\n * (requires API 23).\n * - iOS: Equivalent to [`biometryCurrentSet`](https://developer.apple.com/documentation/security/secaccesscontrolcreateflags/2937192-biometrycurrentset).\n * Complete functionality is unlocked only with a freshly generated key - this would not work in tandem with the `keychainService`\n * value used for the others non-authenticated operations.\n *\n * This option works slightly differently across platforms: On Android, user authentication is required for all operations.\n * On iOS, the user is prompted to authenticate only when reading or updating an existing value (not when creating a new one).\n *\n * Warning: This option is not supported in Expo Go when biometric authentication is available due to a missing NSFaceIDUsageDescription.\n * In release builds or when using continuous native generation, make sure to use the `expo-secure-store` config plugin.\n *\n */\n requireAuthentication?: boolean;\n /**\n * Custom message displayed to the user while `requireAuthentication` option is turned on.\n */\n authenticationPrompt?: string;\n /**\n * Specifies when the stored entry is accessible, using iOS's `kSecAttrAccessible` property.\n * @see Apple's documentation on [keychain item accessibility](https://developer.apple.com/documentation/security/ksecattraccessible/).\n * @default SecureStore.WHEN_UNLOCKED\n * @platform ios\n */\n keychainAccessible?: KeychainAccessibilityConstant;\n\n /**\n * Specifies the access group the stored entry belongs to.\n * @see Apple's documentation on [Sharing access to keychain items among a collection of apps](https://developer.apple.com/documentation/security/sharing-access-to-keychain-items-among-a-collection-of-apps).\n * @platform ios\n */\n accessGroup?: string;\n};\n\n// @needsAudit\n/**\n * Returns whether the SecureStore API is enabled on the current device. This does not check the app\n * permissions.\n *\n * @return Promise which fulfils with a `boolean`, indicating whether the SecureStore API is available\n * on the current device. Currently, this resolves `true` on Android and iOS only.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return !!ExpoSecureStore.getValueWithKeyAsync;\n}\n\n// @needsAudit\n/**\n * Delete the value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if the value can't be deleted.\n */\nexport async function deleteItemAsync(\n key: string,\n options: SecureStoreOptions = {}\n): Promise<void> {\n ensureValidKey(key);\n\n await ExpoSecureStore.deleteValueWithKeyAsync(key, options);\n}\n\n// @needsAudit\n/**\n * Reads the stored value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.\n *\n * > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.\n * > After a key has been invalidated, it becomes impossible to read its value.\n * > This only applies to values stored with `requireAuthentication` set to `true`.\n */\nexport async function getItemAsync(\n key: string,\n options: SecureStoreOptions = {}\n): Promise<string | null> {\n ensureValidKey(key);\n return await ExpoSecureStore.getValueWithKeyAsync(key, options);\n}\n\n// @needsAudit\n/**\n * Stores a key–value pair.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if value cannot be stored on the device.\n */\nexport async function setItemAsync(\n key: string,\n value: string,\n options: SecureStoreOptions = {}\n): Promise<void> {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(\n `Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`\n );\n }\n\n await ExpoSecureStore.setValueWithKeyAsync(value, key, options);\n}\n\n/**\n * Stores a key–value pair synchronously.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when the `requireAuthentication` option is set to `true` until the user authenticates.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n */\nexport function setItem(key: string, value: string, options: SecureStoreOptions = {}): void {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(\n `Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`\n );\n }\n\n return ExpoSecureStore.setValueWithKeySync(value, key, options);\n}\n\n/**\n * Synchronously reads the stored value associated with the provided key.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when reading a value with `requireAuthentication`\n * > option set to `true` until the user authenticates.\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return Previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated.\n */\nexport function getItem(key: string, options: SecureStoreOptions = {}): string | null {\n ensureValidKey(key);\n return ExpoSecureStore.getValueWithKeySync(key, options);\n}\n\n/**\n * Checks if the value can be saved with `requireAuthentication` option enabled.\n * @return `true` if the device supports biometric authentication and the enrolled method is sufficiently secure. Otherwise, returns `false`. Always returns false on tvOS.\n * @platform android\n * @platform ios\n */\nexport function canUseBiometricAuthentication(): boolean {\n return ExpoSecureStore.canUseBiometricAuthentication();\n}\n\nfunction ensureValidKey(key: string) {\n if (!isValidKey(key)) {\n throw new Error(\n `Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, \".\", \"-\", and \"_\".`\n );\n }\n}\n\nfunction isValidKey(key: string) {\n return typeof key === 'string' && /^[\\w.-]+$/.test(key);\n}\n\nfunction isValidValue(value: string) {\n if (typeof value !== 'string') {\n return false;\n }\n if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {\n console.warn(\n `Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`\n );\n }\n return true;\n}\n"]}
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.securestore",
11
- "version": "14.1.1",
11
+ "version": "14.2.1",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -179,12 +179,18 @@ public final class SecureStoreModule: Module {
179
179
 
180
180
  let encodedKey = Data(key.utf8)
181
181
 
182
- return [
182
+ var query: [String: Any] = [
183
183
  kSecClass as String: kSecClassGenericPassword,
184
184
  kSecAttrService as String: service,
185
185
  kSecAttrGeneric as String: encodedKey,
186
186
  kSecAttrAccount as String: encodedKey
187
187
  ]
188
+
189
+ if let accessGroup = options.accessGroup {
190
+ query[kSecAttrAccessGroup as String] = accessGroup
191
+ }
192
+
193
+ return query
188
194
  }
189
195
 
190
196
  private func attributeWith(options: SecureStoreOptions) -> CFString {
@@ -12,4 +12,7 @@ internal struct SecureStoreOptions: Record {
12
12
 
13
13
  @Field
14
14
  var requireAuthentication: Bool
15
+
16
+ @Field
17
+ var accessGroup: String?
15
18
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.securestore",
6
- "version": "14.1.1",
6
+ "version": "14.2.1",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -33,8 +33,8 @@
33
33
  ],
34
34
  "files": [
35
35
  {
36
- "name": "expo.modules.securestore-14.1.1.aar",
37
- "url": "expo.modules.securestore-14.1.1.aar",
36
+ "name": "expo.modules.securestore-14.2.1.aar",
37
+ "url": "expo.modules.securestore-14.2.1.aar",
38
38
  "size": 73332,
39
39
  "sha512": "1298c16d3a6f4c8a985e67a9fb75d3b10860496c866698bfe9f0c54c1abc0da10f70e71633b3945f66c80ffb09430950b5f9d8ddff178ae627c99dd4dad6daca",
40
40
  "sha256": "b7b736bc24fba64ab0ffd5661ca6be1719d91fdd764489c1564e7592b9c9037e",
@@ -69,8 +69,8 @@
69
69
  ],
70
70
  "files": [
71
71
  {
72
- "name": "expo.modules.securestore-14.1.1.aar",
73
- "url": "expo.modules.securestore-14.1.1.aar",
72
+ "name": "expo.modules.securestore-14.2.1.aar",
73
+ "url": "expo.modules.securestore-14.2.1.aar",
74
74
  "size": 73332,
75
75
  "sha512": "1298c16d3a6f4c8a985e67a9fb75d3b10860496c866698bfe9f0c54c1abc0da10f70e71633b3945f66c80ffb09430950b5f9d8ddff178ae627c99dd4dad6daca",
76
76
  "sha256": "b7b736bc24fba64ab0ffd5661ca6be1719d91fdd764489c1564e7592b9c9037e",
@@ -89,8 +89,8 @@
89
89
  },
90
90
  "files": [
91
91
  {
92
- "name": "expo.modules.securestore-14.1.1-sources.jar",
93
- "url": "expo.modules.securestore-14.1.1-sources.jar",
92
+ "name": "expo.modules.securestore-14.2.1-sources.jar",
93
+ "url": "expo.modules.securestore-14.2.1-sources.jar",
94
94
  "size": 13233,
95
95
  "sha512": "b95be587e923e05440115bb98077333c6040e2d27fccf6ffa066e6e0aa5824268122eee8b3244d4eaaa838ec046a903d16995924c911a7939598c55513a0aa05",
96
96
  "sha256": "f86eab4eac3a835dee9b4c3b16be92129357e38fa38794b7a7932569d56fceb0",
@@ -0,0 +1 @@
1
+ 6596a5c2ec8c3e1cb60c9392b185e72a7e07b36d48e8c9f4f416c23031931b34
@@ -0,0 +1 @@
1
+ 41ebc205e8f4d27507a6e98972d386a3a3f961fdb313aba091a0f01078a29e7a694e6b6e1c9865510ff51a6179cc18482d25f2d5bfd4703b916b8e7a117536c7
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.securestore</artifactId>
12
- <version>14.1.1</version>
12
+ <version>14.2.1</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.securestore</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ ffdb14dae416e40fa6883c4a171eaab0132108774d6d80d1051d2e704d06a415
@@ -0,0 +1 @@
1
+ 36ed445d87c8aeda680cb63849852328234e2c11948ce9c6a13ff07e6ed25e8d16bf10466268da7c32af6ffc66b03818d74ee7141774f18709c3d04bbdf03d64
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.securestore</artifactId>
5
5
  <versioning>
6
- <latest>14.1.1</latest>
7
- <release>14.1.1</release>
6
+ <latest>14.2.1</latest>
7
+ <release>14.2.1</release>
8
8
  <versions>
9
- <version>14.1.1</version>
9
+ <version>14.2.1</version>
10
10
  </versions>
11
- <lastUpdated>20250409202802</lastUpdated>
11
+ <lastUpdated>20250414185042</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 6aa940bc4cb561970592d5e6b8ae8801
1
+ f6939753f652a9eb3eb6a74642410138
@@ -1 +1 @@
1
- bdf37059d263a33038bc5c671bb4b85cf511e5fe
1
+ 53e3e46ce6ff88941a720f12c612a58ffe199a5d
@@ -1 +1 @@
1
- 858f617a49e28989afea38877732dd327d3f35cec6ce1e24d0bd58ffe6c400c7
1
+ 5d5b305fb1b34c648583271c933aac9eab93be284800da69ec66e8e5192ddbd3
@@ -1 +1 @@
1
- b90627b2b9ebe03efc1619a87ecc286f994648fef86c0964fdf685ff102e9cac7ff5458229ea9c317f54079125c944e44111fff445852fd643c2b3067377eac5
1
+ bb9b756a43f2ae9aef913905c88efa5a17a3caeb33f51dc57898a77148da3a08c31287fc99bbb60f6bb76e04f94b5dc347df81ec278723919f4cc75259a0ca4e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-secure-store",
3
- "version": "14.1.1",
3
+ "version": "14.2.1",
4
4
  "description": "Provides a way to encrypt and securely store key-value pairs locally on the device.",
5
5
  "main": "build/SecureStore.js",
6
6
  "types": "build/SecureStore.d.ts",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "dependencies": {},
39
39
  "devDependencies": {
40
- "expo-module-scripts": "^4.1.1"
40
+ "expo-module-scripts": "^4.1.2"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "expo": "*"
44
44
  },
45
- "gitHead": "1914bb35d23af23078da37e70988261844436505"
45
+ "gitHead": "cb9fdd93f76f28e2ace4f66080b2386d87239553"
46
46
  }
@@ -95,6 +95,13 @@ export type SecureStoreOptions = {
95
95
  * @platform ios
96
96
  */
97
97
  keychainAccessible?: KeychainAccessibilityConstant;
98
+
99
+ /**
100
+ * Specifies the access group the stored entry belongs to.
101
+ * @see Apple's documentation on [Sharing access to keychain items among a collection of apps](https://developer.apple.com/documentation/security/sharing-access-to-keychain-items-among-a-collection-of-apps).
102
+ * @platform ios
103
+ */
104
+ accessGroup?: string;
98
105
  };
99
106
 
100
107
  // @needsAudit
@@ -1 +0,0 @@
1
- 13dc45e1b9595450caaada6ac055a6443fb0bc306c56d0cf92dfc7a938625291
@@ -1 +0,0 @@
1
- db6c6ea1f8bb5ee948352718de2788b367a2419fc210111b05e7f145e75335a7aa423f9d4b5ea5a45311a5221f953639b5c76b7f280a851322dd92733149f996
@@ -1 +0,0 @@
1
- 392961029209a297520e28ad8fe6ba0e881da1afabbe4f0c30a229549b32be1a
@@ -1 +0,0 @@
1
- d3e01cc3b92eac05dd6986a00727c9c089c331090a556a603de82ffc03f8b615da3441634ae40d24ed11f82795f0c9f857787096f017239855c4b0a66c300031