A Token Walks Into a SPA
summary
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
chapters (10)
- 0:00A Token Walks into SPA Intro
- 1:23Why Tokens?
- 3:55Stateless
- 5:34Header
- 6:27Payload
- 7:40Signature
- 9:13Hockey example
- 16:40Silent Auth
- 19:05JWT Considerations
- 21:34Resources
related talks
43mA Token Walks Into a SPA...
28mA Token Walks Into a SPA...
40mKnock knock, who's there? Authenticating your single page apps using JSON Web Tokens
19mJWT! What is it good for? Absolutely everything!
25mHow JSON Web Tokens Work and Can be Used to Secure Your Single Page Apps
37mKnock knock, who's there? Authenticating your single page apps using JSON Web Tokens
04mJSON Web Tokens
34mAuthenticating your single page apps using JSON Web Tokens
