You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Volvo ID: warn when the connection lasts only an hour ("Remember me" not ticked) #320
On the new Volvo ID (Keycloak, vid- applications), the lifetime of a connection depends on the "Remember me" box of Volvo's sign-in page, as measured in #253:
not ticked: refresh_expires_in=1800, and the session ends one hour after the authorization, refreshes or not (invalid_grant, "Token is not active");
ticked: refresh_expires_in=7776000 (90 days).
offline_access, which would lift this, is refused (invalid_scope) and the developer portal does not offer it. So a user who does not tick the box loses their vehicles after an hour, and Runsten does not tell them why.
To do
Read refresh_expires_in from the code exchange; when it is short (under a day), keep the connection but come back to the Connection page with a warning: tick "Remember me" and reconnect.
Say it next to the Connect / Reconnect button of the Volvo ID, before the user goes to Volvo.
Simulator: announce refresh_expires_in.
Documentation: self-hosting/volvo.md.
Check on a real car whether 90 days is a cap from the authorization or is renewed by the refreshes.
Implemented, not committed yet (branch volvo-remember-me-320, from main):
refresh_expires_in is read from the token response (a number or a string); under a day, the vehicles are recorded all the same and the flow comes back with connection?volvo=short_session: the Connection page warns to reconnect ticking "Remember me" (runsten-api served alone tells it too). Logged as a warning with the lifetime.
Next to the Connect / Reconnect button of the Volvo ID: tick "Remember me", or Volvo ends the connection after an hour (8 locales).
Simulator: announces refresh_expires_in (its refresh token TTL); SIM_REFRESH_TOKEN_TTL=30m task run-sim shows the short session, and task connect-sim accepts it.
Docs: self-hosting/volvo.md, in "Connecting your Volvo ID" and the move to the new Volvo ID.
Remains: checking on a real car whether the 90 days are a cap from the authorization or renewed by the refreshes (dimitrideruiter is measuring it in #253).
runsten: pull request #379, commits 1c9c827 (docs) and aabeb82 (Volvo ID client, API, Connection page, simulator, tests). Remains after merge: checking on a real car whether the 90 days are a cap or renewed by the refreshes.
Activity
vcanuel commentedon Nov 12, 2026
Implemented, not committed yet (branch
volvo-remember-me-320, frommain):refresh_expires_inis read from the token response (a number or a string); under a day, the vehicles are recorded all the same and the flow comes back withconnection?volvo=short_session: the Connection page warns to reconnect ticking "Remember me" (runsten-api served alone tells it too). Logged as a warning with the lifetime.refresh_expires_in(its refresh token TTL);SIM_REFRESH_TOKEN_TTL=30m task run-simshows the short session, andtask connect-simaccepts it.self-hosting/volvo.md, in "Connecting your Volvo ID" and the move to the new Volvo ID.Remains: checking on a real car whether the 90 days are a cap from the authorization or renewed by the refreshes (dimitrideruiter is measuring it in #253).
vcanuel commentedon Nov 12, 2026
runsten: pull request #379, commits 1c9c827 (docs) and aabeb82 (Volvo ID client, API, Connection page, simulator, tests). Remains after merge: checking on a real car whether the 90 days are a cap or renewed by the refreshes.