I want to update my cookies.
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
First, a series of flows are introduced.
The prerequisite is that the access token is set to a cookie. This is set in ServerActions at login.
↓Sequence of flow
Then, Fetch(Get) is performed, but the access token has expired.
The API server (made by NestJS) responds with a refresh token, and based on the refresh token, RouteHandler's refresh token API is hit.
After refreshing the access token, the subsequent process (in RouteHandler) performs cookies().set(), but the cookie is not updated.
Why is this?
A series of flows are done within the React Server Component.
The prerequisite is that the access token is set to a cookie. This is set in ServerActions at login.
↓Sequence of flow
Then, Fetch(Get) is performed, but the access token has expired.
The API server (made by NestJS) responds with a refresh token, and based on the refresh token, RouteHandler's refresh token API is hit.
After refreshing the access token, the subsequent process (in RouteHandler) performs cookies().set(), but the cookie is not updated.
Why is this?
A series of flows are done within the React Server Component.