Edge function proxies for HTTP-only cookies on a static host

I want to use proper HTTP-only cookies for authentication, but I don't have a traditional backend. I am thinking of using an Edge function to act as a proxy. It intercepts the login request, calls an external Auth0 API, takes the JWT, sets it as an HTTP-only cookie, and redirects the user back to the static site. Has anyone implemented this? Does it feel too brittle?

Posted May 12, 2026, 2:57 PM UTC

13
Loading comments…