Closed wangsijie closed 8 months ago
When access token changed (new one issued), the session will change with new token map as well, need to set new cookie by calling "storage.save()".
No need to change "server actions" SDK because the cookie is not managed inside the SDK, and the server action can not always call "setCookie".
Local tested, after 1 hour when access token expires, "set-cookie" is found in response header.
.changeset
Summary
When access token changed (new one issued), the session will change with new token map as well, need to set new cookie by calling "storage.save()".
No need to change "server actions" SDK because the cookie is not managed inside the SDK, and the server action can not always call "setCookie".
Testing
Local tested, after 1 hour when access token expires, "set-cookie" is found in response header.
Checklist
.changeset