You might not need a service worker

(jayfreestone.com)

15 points | by Fudgel 4 hours ago

1 comments

  • jakelazaroff 15 minutes 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