Hono-Sessions, Cookie-Store, working for multiple domains

I have a client React app that consumes data from multiple backends.
in development, those backends are
  • http://localhost:8001,
  • http://localhost:8002,
  • http://localhost:8003,
    ...
    and the authentication is handled from
    http://localhost:8000
In production, authentication is handled from
  • https://auth.domain.com
    and i have the servers spread out through different subdomains of the same domain.
Right now, i'm using Bearer Authentication, with a token generated in the auth server, decoded by the same middleware imported in every other service.

I would love to switch to cookie based session management, but i don't want to change the backend architecture setup.

Is this possible with hono and hono-sessions?
How?

Thank you
Was this page helpful?