Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [myRootRef observeAuthEventWithBlock:^(FAuthData *authData) {
  2. NSLog(@"got an auth event");
  3. }];
  4.  
  5. Firebase *child = [myRootRef childByAppendingPath:@"child_path"];
  6.  
  7. [myRootRef authUser:@"dude@thing.com" password:@"pw" withCompletionBlock:^(NSError *error, FAuthData *authData) {
  8.  
  9. NSLog(@"authentication 1 success");
  10. [child removeAllObservers];
  11. [self doAuth];
  12. }
  13. }];
  14.  
  15. got an auth event
  16. got an auth event
  17. authentication 1 success
  18. authentication 2 success
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement