workos-node icon indicating copy to clipboard operation
workos-node copied to clipboard

CookieSession.refresh should seal session with new refresh token

Open timc13 opened this issue 4 months ago • 0 comments

CookieSession.refresh does not rotate the refresh token. The sealed session that is returned we are expected to set in the cookie still has the original refresh token.

According to https://workos.com/docs/reference/authkit/authentication/refresh-token, the underlying call does issue a replacement refresh token, however it is seemingly not being set in the refreshed session.

timc13 avatar Sep 11 '25 05:09 timc13