react-social-login icon indicating copy to clipboard operation
react-social-login copied to clipboard

getInstance is not working

Open hdminh247 opened this issue 3 years ago • 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 ?

hdminh247 avatar Mar 11 '21 03:03 hdminh247

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?

deepakaggarwal7 avatar Mar 17 '21 03:03 deepakaggarwal7

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

hdminh247 avatar Mar 23 '21 06:03 hdminh247