Waiting for google.accounts.com to finish before calling pouchdb methods

15 views
Skip to first unread message

Kiflemariam Andom

unread,
Jun 10, 2019, 9:31:38 AM6/10/19
to Angular and AngularJS discussion
Hi,

I am using google social login in my pouchdb driven app. The thing now is I noticed that google tries to establish itself and perhaps I am wrong, in that insistance, the method that creates my pouchdb doesn't get called on time. While I am not 100% sure, I want to eliminate that possiblity. Is there away to know when google social login has finished whatever it does?

I am using
angular5-social-login

Sander Elias

unread,
Jun 14, 2019, 4:06:10 AM6/14/19
to Angular and AngularJS discussion
Hi Kiflemariam,

I now google auth provides this hook. I don't know anything about the plugin you are using, but it should be able to tap into that.
Used this quite a number of times already, and it works every time. (not your plugin, my own implementation)

Regards
Sander
Reply all
Reply to author
Forward
0 new messages