Skip to content

Volvo ID: warn when the connection lasts only an hour ("Remember me" not ticked) #320

Description

@vcanuel

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.

Activity

  1. added theissue type on Nov 9, 2026
  2. vcanuel commented on Nov 12, 2026

    @vcanuel
    ContributorAuthor

    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).

  3. vcanuel commented on Nov 12, 2026

    @vcanuel
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    brand:volvo

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions