ios - Firebase: Is there way to be more faster for authentication? -



ios - Firebase: Is there way to be more faster for authentication? -

similar question. is possible cache auth token speed login in firebase ios?

i'm authenticating firebasesimplelogin. here authentication code

- (void)checkauthstatus{ firebase *ref = [[firebase alloc] initwithurl:rooturl]; firebasesimplelogin *authclient = [[firebasesimplelogin alloc] initwithref:ref]; [authclient checkauthstatuswithblock:^(nserror *error, fauser *user) { if (error == nil) { if (user != nil) { if(user.thirdpartyuserdata == nil){ //email login }else{ //facebook、twitter login } }else [self actionlogin]; } else { nsstring *message = [error.userinfo valueforkey:@"nslocalizeddescription"]; [self performselectoronmainthread:@selector(showerror:) withobject:message waituntildone:no]; } }]; }

i method async blocks

dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_background, 0), ^{ [self checkauthstatus]; });

this takes around 5 - 8 seconds until showing tableview info source. tried run ifirefeed app takes same time.

i want know more faster way if there is.

anyone have thought or experience more faster authentication?

ios objective-c authentication firebase

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -