@@ -89,39 +89,39 @@ const App = () => {
8989 )
9090 ) ;
9191 } ,
92- // iOS only
93- 'deviceID ' : ( ) => {
92+ // Android & iOS
93+ 'hardwareBackedKeystoreNotAvailable ' : ( ) => {
9494 setAppChecks ( ( currentState ) =>
9595 currentState . map ( ( threat ) =>
96- threat . name === 'Device ID' ? { ...threat , status : 'nok' } : threat
96+ threat . name === 'Hardware Backed Keystore'
97+ ? { ...threat , status : 'nok' }
98+ : threat
9799 )
98100 ) ;
99101 } ,
100- // iOS only
101- 'missingSecureEnclave ' : ( ) => {
102+ // Android & iOS
103+ 'passcode ' : ( ) => {
102104 setAppChecks ( ( currentState ) =>
103105 currentState . map ( ( threat ) =>
104- threat . name === 'Missing Secure Enclave'
105- ? { ...threat , status : 'nok' }
106- : threat
106+ threat . name === 'Passcode' ? { ...threat , status : 'nok' } : threat
107107 )
108108 ) ;
109109 } ,
110110 // iOS only
111- 'passcodeChange ' : ( ) => {
111+ 'deviceID ' : ( ) => {
112112 setAppChecks ( ( currentState ) =>
113113 currentState . map ( ( threat ) =>
114- threat . name === 'Passcode Change'
115- ? { ...threat , status : 'nok' }
116- : threat
114+ threat . name === 'Device ID' ? { ...threat , status : 'nok' } : threat
117115 )
118116 ) ;
119117 } ,
120118 // iOS only
121- 'passcode ' : ( ) => {
119+ 'passcodeChange ' : ( ) => {
122120 setAppChecks ( ( currentState ) =>
123121 currentState . map ( ( threat ) =>
124- threat . name === 'Passcode' ? { ...threat , status : 'nok' } : threat
122+ threat . name === 'Passcode Change'
123+ ? { ...threat , status : 'nok' }
124+ : threat
125125 )
126126 ) ;
127127 } ,
0 commit comments