File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,5 +41,9 @@ export const getSecureEnvironment = () => {
41
41
return fallbackSecureEnvironment
42
42
}
43
43
44
+ export const shouldUseFallbackSecureEnvironment = ( useFallback : boolean ) => {
45
+ isExpoSecureEnvironmentSupported = ! useFallback
46
+ }
47
+
44
48
export const isLocalSecureEnvironmentSupported = ( ) =>
45
49
Platform . OS === 'ios' ? true : expoSecureEnvironment . supportsSecureEnvironment ( )
Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ import { SubjectPublicKeyInfo } from '@peculiar/asn1-x509'
4
4
import { Platform } from 'expo-modules-core'
5
5
import { getSecureEnvironment } from './SecureEnvironment'
6
6
7
- export { SecureEnvironment , setFallbackSecureEnvironment , isLocalSecureEnvironmentSupported } from './SecureEnvironment'
7
+ export {
8
+ SecureEnvironment ,
9
+ setFallbackSecureEnvironment ,
10
+ isLocalSecureEnvironmentSupported ,
11
+ shouldUseFallbackSecureEnvironment ,
12
+ } from './SecureEnvironment'
8
13
9
14
export async function generateKeypair ( id : string , biometricsBacked = true ) : Promise < void > {
10
15
await getSecureEnvironment ( ) . generateKeypair ( id , biometricsBacked )
You can’t perform that action at this time.
0 commit comments