mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🚀 Feature: Decouple Pocket ID session length from OIDC client #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RealOrangeOne on GitHub.
Feature description
Currently, the session duration of Pocket ID is the same as the session duration for each client. It should be possible to decouple these, possibly by specifying either a single system-wide value, or per-client.
Pitch
For Pocket ID itself, a session duration quite short makes sense, since it shouldn't be logged in to that often, and reducing it helps implement #544.
However, having to re-authenticate with logged in services every hour (by default) is fairly tedious and doesn't make sense for quite a few services.
@RealOrangeOne commented on GitHub:
I think I meant the refresh token in this case, but as you say if that's already 30 days, there's clearly something else going on, so I'll do some more digging.
@stonith404 commented on GitHub:
The session duration of Pocket ID is not linked to the expiration of the access token that clients receive, the access token expiration is set to one hour.
Clients should use the refresh token provided by Pocket ID, which is valid for 30 days, to renew the access token. As the access token can be refreshed we're not planning to customize the access token expiration.