Improved session lengths
See original GitHub issueSince we switched to OAuth for user logins, we’ve had sessions which only last one day. The more you use Ghost, the more annoying this gets, and with the editor now working much better on mobile devices where password managers don’t really work, this is only getting more frustrating.
Ideally we need to change the sessions so that they last for a month.
Making this change is simple, but there is a bit of consideration to be done. As far as I understand it, our refresh token expiry date is automatically extended each time it’s swapped for an access token. Moving towards using a refresh token for a month would mean that refresh tokens may be kept around almost indefinitely. Ideally, we’d probably like to swap refresh tokens for a brand new token every once in a while but I’m not sure that the oauth2orize
, passport
& ember-simple-auth
combo we’ve got going on has any way to do that.
Thoughts on a post card!
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (17 by maintainers)
Top GitHub Comments
Should this issue be closed now?
@kevinansfield and I jumped in a call.
We agreed on the following simple solution
We will add these changes both for LTS and 1.0.0 today - because of consistency and it’s quite easy to add them.
The chance of getting auto logged is almost 0 and this should cover all of our cases:
Facts to keep in mind