-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,17 +115,16 @@ - (void)FIRAuth_h:(FIRAuth *)auth | |
[auth updateCurrentUser:[auth currentUser] | ||
completion:^(NSError *_Nullable error){ | ||
}]; | ||
[auth fetchSignInMethodsForEmail:@"[email protected]" | ||
completion:^(NSArray<NSString *> *_Nullable c, NSError *_Nullable e){ | ||
}]; | ||
[auth signInWithEmail:@"[email protected]" | ||
password:@"pw" | ||
completion:^(FIRAuthDataResult *_Nullable authResult, NSError *_Nullable error){ | ||
}]; | ||
#if !TARGET_OS_WATCH | ||
[auth signInWithEmail:@"[email protected]" | ||
link:@"link" | ||
completion:^(FIRAuthDataResult *_Nullable authResult, NSError *_Nullable error){ | ||
}]; | ||
#endif | ||
#if TARGET_OS_IOS | ||
[auth signInWithProvider:provider | ||
UIDelegate:nil | ||
|
@@ -166,13 +165,18 @@ - (void)FIRAuth_h:(FIRAuth *)auth | |
actionCodeSettings:settings | ||
completion:^(NSError *_Nullable error){ | ||
}]; | ||
#if TARGET_OS_WATCH | ||
[auth sendSignInLinkToEmail:@"email" | ||
actionCodeSettings:settings | ||
completion:^(NSError *_Nullable error){ | ||
}]; | ||
#endif | ||
NSError *error; | ||
[auth signOut:&error]; | ||
BOOL b = [auth isSignInWithEmailLink:@"email"]; | ||
BOOL b; | ||
#if TARGET_OS_WATCH | ||
b = [auth isSignInWithEmailLink:@"email"]; | ||
#endif | ||
FIRAuthStateDidChangeListenerHandle handle = | ||
[auth addAuthStateDidChangeListener:^(FIRAuth *_Nonnull auth, FIRUser *_Nullable user){ | ||
}]; | ||
|