~/talk

A Token Walks Into a SPA

Talkat VueConf TO 2018 · on Friday, 2018-11-16· [security, vue]

Explains actual JWT structure with header, payload, signature and shows a hockey-ticket example that proves claims matter not buzzwords; decodes why tokens travel in the Authorization header and why storing JWTs in localStorage invites XSS while HTTP-only cookie and silent auth iframe let the authorization server reissue short-lived tokens. Recommends RS256, keep claims small, use Vue Router meta and navigation guards, and attach tokens via HTTP interceptors (axios/fetch wrappers) so authorization checks are enforced per request.

AI-written summary · about

  1. 0:00A Token Walks into SPA Intro
  2. 1:23Why Tokens?
  3. 3:55Stateless
  4. 5:34Header
  5. 6:27Payload
  6. 7:40Signature
  7. 9:13Hockey example
  8. 16:40Silent Auth
  9. 19:05JWT Considerations
  10. 21:34Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.