File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,12 @@ Configure biometric authentication to protect credential access. The SDK support
278278### Using with Auth0Provider (Hooks)
279279
280280``` jsx
281- import { Auth0Provider , BiometricPolicy } from ' react-native-auth0' ;
281+ import {
282+ Auth0Provider ,
283+ BiometricPolicy ,
284+ LocalAuthenticationStrategy ,
285+ LocalAuthenticationLevel ,
286+ } from ' react-native-auth0' ;
282287
283288function App () {
284289 return (
@@ -318,7 +323,11 @@ function App() {
318323### Using with Auth0 Class
319324
320325``` js
321- import Auth0 , { BiometricPolicy } from ' react-native-auth0' ;
326+ import Auth0, {
327+ BiometricPolicy ,
328+ LocalAuthenticationStrategy ,
329+ LocalAuthenticationLevel ,
330+ } from ' react-native-auth0' ;
322331
323332const auth0 = new Auth0 ({
324333 domain: ' YOUR_AUTH0_DOMAIN' ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export enum LocalAuthenticationStrategy {
4747 * **Platform specific:** Native only (iOS/Android).
4848 * Controls when biometric authentication prompts are shown when accessing stored credentials.
4949 *
50- * - `default`: System-managed behavior (preserves backward compatibility, reuses LAContext on iOS) ; maps to Always policy on Android)
50+ * - `default`: System-managed behavior (preserves backward compatibility, reuses LAContext on iOS; maps to Always policy on Android)
5151 * - `always`: Always prompts for biometric authentication (creates fresh LAContext on iOS, maps to 'always' on Android)
5252 * - `session`: Prompts once, then caches for the specified timeout in seconds
5353 * - `appLifecycle`: Prompts once until app restart or manual clear, with optional timeout
You can’t perform that action at this time.
0 commit comments