Friction

Workaround · API & developer experience · Annoyance

Cookie middleware needed to make built-in auth work with server-side rendering

1 source thread · first seen 2025-04

Summary

A developer building a server-rendered SaaS template found PocketBase's built-in auth only works with SSR after writing their own cookie middleware. They question whether PocketBase is worth it given its client-library-to-DB model.

Affects
developer building a server-rendered SaaS template
Workaround
Wrote custom cookie middleware and wrapped all calls in their own API routes

Evidence

Excerpts are copied word for word from the source; follow the link to read it in full.

“I've had to write cookie middleware to make it SSR anyway”

Report this item