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

Cannot re-authenticate after login success

Open panteparak opened this issue 7 years ago • 1 comments

After login success, I was not able to re-authenticate. I understand that this is by design but, facebook and I'm sure another social login providers have an expiration date for their generated token. Some sort of automatic re-login or auto log out would be great.

panteparak avatar Jan 15 '18 02:01 panteparak

Seems a great suggestion, but how would you design it?

It can't be a mandatory behaviour anyway, so maybe through a boolean prop we would refresh the access token automatically before it expires? We have to check this feature's availability through supported providers before thinking about it.

Can you please have a look to providers' docs and link them here?

About logout, it would be the simplest way of doing this, just make a timeout from expiresAt which triggers the onLogout function. Maybe we could implement those two behaviours?

nicolas-goudry avatar Jan 15 '18 10:01 nicolas-goudry