And frankly if they have control of the user's browser, they could probably install a key logger anyway.
That way, if someone is constantly using the site, they would never notice a logout, but otherwise they might have to login once a day.
And frankly if they have control of the user's browser, they could probably install a key logger anyway.
That way, if someone is constantly using the site, they would never notice a logout, but otherwise they might have to login once a day.
As negative as I sound, the system is better than just allowing the regular api token to extend the session. Of the hundreds to thousands of api requests a regular user may make a day, only 1 is the reauth, which is nice.
Security is an onion. Every layer is a bit sour and eventually you’ll cry.
Sign
> Because if they’re getting mitm then all is lost.
This is true regardless of your authentication scheme, which is why https is important and then you have to hope they didn't just click through a warning and ignore it or have their trust store compromised or....
> How long does the reauth token last for?
Until it is reissued. But since the auth token is only good for 12 hours, effectively 12 hours max, since it can't be used for reauth without a valid auth token.
> Is a new one issued when you reauth?
Yes.