Cannot re-authenticate after login success
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.
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?