Bug Hono/Cookie

Morning everybody, I have an issue with setCookie Hono. I was setCookie twice for set accessToken and refreshToken. This is my code.

If I only set Cookie for access_token, its work. But If I set twice (access_token & refresh_token) response not works.
            setCookie(c, "access_token", data.access_token, {
                httpOnly: true,
                secure: Config.IS_PRODUCTION,
                path: "/",
                maxAge: Config.EXPIRED_ACCESS_TOKEN * 60
            })

            setCookie(c, "refresh_token", data.refresh_token, {
                httpOnly: true,
                secure: Config.IS_PRODUCTION,
                path: "/",
                maxAge: Config.EXPIRED_REFRESH_TOKEN * 60 * 60 * 24
            })
Was this page helpful?