deepakaggarwal7/react-social-login

getInstance is not working

hdminh247 opened this issue · 2 comments

I am trying to implement logout functionality but it seems getInstance definition has changed. Now it is getInstance?: () => React.RefObject<any>

In your demo codes, using getInstance={this.setNodeRef.bind(this, 'facebook')} is out-date due to conflict with above definition.

Could you let me know how to get the instance correctly ?

getInstance() hasn't changed for pretty long. Seems an issue with type definition. Can you try with the setNodeRed way by ignoring the type definition and share errors if any?

Hey so I could not get it working, btw, how can I logout after login , and if user close auth popup from google, I cant click on login button again to get the popup show up again. Document is too old to follow for now