Currently, if a Tinder token is invalid/expired, we just log the user out.
This PR introduces the following changes:
Stores the Facebook auth token, expiration time, and user ID on login.
If the Tinder token expires, but the Facebook token is still valid, requests a new token from Tinder.
If the Tinder token expires, and the Facebook token is no longer valid, redirect to the login page and flash the login window. (Only if localStorage already exists / the user hasn't logged out manually)
If the Facebook session is active, this will grab the new token and redirect back to the landing page.
If the Facebook session is no longer valid, the user will need to log into Facebook again.
Otherwise, if something goes horribly wrong, we do a proper logout and invalidate the session/storage/cookies.
Retains Settings on logout, as there's nothing personally identifiable in there.
A bit of an ugly hack, open to suggestions on this one.
Currently, if a Tinder token is invalid/expired, we just log the user out.
This PR introduces the following changes:
A bit of an ugly hack, open to suggestions on this one.
Closes #21, closes #2.