Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #85 from auth0/feature-bridge-lock-options
Browse files Browse the repository at this point in the history
More Lock options
  • Loading branch information
hzalaz committed Aug 20, 2016
2 parents 21395c1 + f06f278 commit 0c47e84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/A0RNLock/Core/A0LockReact.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ - (void)showWithOptions:(NSDictionary *)options callback:(A0LockCallback)callbac
callback(@[@"Please configure Lock before using it", [NSNull null], [NSNull null]]);
return;
}

self.lock.usePKCE = [options[@"pkce"] boolValue];
NSArray *connections = options[@"connections"];
NSArray *passwordless = [connections filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(NSString * _Nonnull name, NSDictionary<NSString *,id> * _Nullable bindings) {
NSString *lowecaseName = name.lowercaseString;
Expand Down Expand Up @@ -108,6 +110,9 @@ - (void)showWithOptions:(NSDictionary *)options callback:(A0LockCallback)callbac
if (isTouchID) {
A0TouchIDLockViewController *lock = [self.lock newTouchIDViewController];
lock.closable = [options[@"closable"] boolValue];
lock.disableSignUp = ![self booleanValueOf:options[@"allowSignUp"] defaultValue:YES];
lock.cleanOnError = [options[@"cleanOnError"] boolValue];
lock.cleanOnStart = [options[@"cleanOnStart"] boolValue];
lock.authenticationParameters = [self authenticationParametersFromOptions:options];
lock.onAuthenticationBlock = authenticationBlock;
lock.onUserDismissBlock = dismissBlock;
Expand Down

0 comments on commit 0c47e84

Please sign in to comment.