~/talk

Securing PWA authentication offline

Talkat PWA Summit 2021 · 2021-10-06..10-07· [pwa, security]
links:none on file
slides:none on file

A PWA for African fish farms authenticates users offline by binding the access token to the user (not tenant), using a deferred-promise refresh flow shared between app and service worker to avoid duplicate refreshes, and falling back to queued replay after 10 seconds when background sync lacks support. Front end stacks are Vue + Vuex + LocalForage, caching via Cache Storage and service worker, auth with oidc-client and server IdentityServer, and background uploads via Workbox background sync; the system works in remote offline scenarios.

AI-written summary · about

  1. 0:00Introduction to PWA auth
  2. 1:49Tech stack and requirements
  3. 2:33Offline authentication challenges
  4. 3:58User manager setup in main.js
  5. 5:02Token refresh logic
  6. 7:08Service worker token handling
  7. 8:51Refresh token function details
  8. 9:16Error handling in auth flow
  9. 10:00Background sync API overview
  10. 11:05Workbox background sync setup
  11. 12:10Custom sync handler for auth
  12. 13:15Queue processing in background sync
  13. 14:20Service worker fallback issues
  14. 15:23Final tips and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.