UNPKG

expo-secure-store

Version:

Provides a way to encrypt and securely store key-value pairs locally on the device.

14 lines (13 loc) 645 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_plugins_1 = require("@expo/config-plugins"); const pkg = require('expo-secure-store/package.json'); const FACEID_USAGE = 'Allow $(PRODUCT_NAME) to access your Face ID biometric data.'; const withSecureStore = (config, { faceIDPermission } = {}) => { return config_plugins_1.IOSConfig.Permissions.createPermissionsPlugin({ NSFaceIDUsageDescription: FACEID_USAGE, })(config, { NSFaceIDUsageDescription: faceIDPermission, }); }; exports.default = (0, config_plugins_1.createRunOncePlugin)(withSecureStore, pkg.name, pkg.version);