Skip to content

Commit

Permalink
Defaults to deviceOwnerWithBiometrics
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj committed Jan 26, 2023
1 parent 09582dd commit 7d56ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/credentials-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ class CredentialsManager {
* @param {String} description Android Only - optional - the text to use as description in the authentication screen. On some Android versions it might not be shown. Passing null will result in using the OS's default value.
* @param {String} cancelTitle iOS Only - optional - the cancel message to display on the local authentication prompt.
* @param {String} fallbackTitle iOS Only - optional - the fallback message to display on the local authentication prompt after a failed match.
* @param {String} securityLevel iOS Only - optional - the evaluation policy to use when accessing the credentials
* @param {String} laPolicy iOS Only - optional - the evaluation policy to use when accessing the credentials. Defaults to LAPolicy.deviceOwnerWithBiometrics.
* @returns {Promise}
*/
async requireLocalAuthentication(
title,
description,
cancelTitle,
fallbackTitle,
securityLevel = LAPolicy.deviceOwner,
laPolicy = LAPolicy.deviceOwnerWithBiometrics,
) {
try {
await this._ensureCredentialManagerIsInitialized();
Expand All @@ -101,7 +101,7 @@ class CredentialsManager {
title,
cancelTitle,
fallbackTitle,
securityLevel
laPolicy
);
} else {
await this.Auth0Module.enableLocalAuthentication(title, description);
Expand Down

0 comments on commit 7d56ab2

Please sign in to comment.