News for hackers. Stuff that matters.
Re:Show HN: DeploySolo – The SaaS boilerplate for engineers.... by Onavo on Monday March 25, 2024 @02:08PM (#39819492)
Does pocketbase support auth refresh tokens?
Re:Show HN: DeploySolo – The SaaS boilerplate for engineers.... by mannders on Monday March 25, 2024 @03:42PM (#39820494)
Pocketbase doesn't maintain separate refresh and access tokens. Credit to the discussion behind this can be found here: https://github.com/pocketbase/pocketbase/discussions/2154#di...

This is essentially because Pocketbase commits to being a monolithic architecture. There's no need to pass around auth status to different microservices, because all relevant services are accessible locally.

It doesn't even store the auth tokens themselves on the server, as the clients are expected to store and handle them, which eventually do expire.

TL:DR, having a long lived refresh token is not more secure than just having a long lived auth token in the first place.

The pocketbase monolithic architecture is one of the primary reasons I am so excited about this technology. No it isn't appropriate where horizontal scaling is mission critical, but for the indie developer projects, having more microservices than users is just complexity for no reason.

Re:Show HN: DeploySolo – The SaaS boilerplate for engineers.... by _virtu on Tuesday March 26, 2024 @12:40AM (#39824319)
Re the monolith vs micro service problem; this is why I love elixir and Phoenix.
Re:Show HN: DeploySolo – The SaaS boilerplate for engineers.... by aitchnyu on Tuesday March 26, 2024 @01:23AM (#39824489)
Wonder if there is auth/SSO/WAF at reverse proxy level? For example Nginx would serve mydjangoapp.site.com and gitlab.site.com and gatekeeps users and services like a monolith.