Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 99 words in the discussion.

Trending Topics

#support#service#worker#offline#app#hard#while#working#small#atproto

Discussion (2 Comments)Read Original on HackerNews

jakelazaroffabout 1 hour ago
While working on a small atproto OAuth client I discovered a neat service worker pattern that I don't think I've ever seen someone write about. The page makes normal fetch requests, and the service worker adds the authorization header and handles token refreshes/dpop retries/etc under the hood. https://tangled.org/jakelazaroff.com/atsw
cheema33about 1 hour ago
> I’d argue that this is more of a question of ‘do I need offline support?’ For Slack, sure, but for many apps, probably not.

I like offline support. I enjoy it when an app I use supports it. And I want to add support for it in my own app. But, it is a hard problem. And to the best of my knowledge there is no framework or library that that solves the hard problems for you.