Skip to content

Commit 10ba1f9

Browse files
biometric example update to include import the used parameter
1 parent 1e71f08 commit 10ba1f9

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

EXAMPLES.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

283288
function 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

323332
const auth0 = new Auth0({
324333
domain: 'YOUR_AUTH0_DOMAIN',

src/types/platform-specific.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)