~/talk

Authentication in Nuxt

Talkat Nuxt Nation 2024 · 2024-11-12..11-13· [security, web-platform]
slides:none on file

An open-source Nuxt module for auth shows cookie‑based, encrypted sessions with client HTTP‑only cookies, a composable API (useUserSession) and server helpers that demo a working login flow and session fetch, plus WebAuthn passwordless and >20 OAuth providers. It claims cross‑runtime support (Node to Cloudflare), is written in TypeScript and supports type augmentation, and reports 900+ GitHub stars and 32,000 downloads/month. Limits: 4KB cookie payload; session storage and server‑side revoke are listed as upcoming.

AI-written summary · about

  1. 0:00Authentication in Nuxt
  2. 1:26What authentication is
  3. 2:55Nuxt auth solutions
  4. 3:39next-auth-utils features
  5. 5:45Installing next-auth-utils
  6. 6:54Server API route for login
  7. 7:57useUserSession composable
  8. 9:45Live demo: login flow
  9. 10:26Secure cookies in next-auth-utils
  10. 11:33Server session data
  11. 12:34Benefits and limitations of cookie-based sessions
  12. 14:44Social auth with OAuth
  13. 15:48GitHub OAuth flow
  14. 17:17Passwordless with WebAuthn
  15. 19:52Setting up WebAuthn registration and login
  16. 21:42Live demo: WebAuthn auth
  17. 22:23Auth in hybrid rendering
  18. 23:50Fixing hydration issues
  19. 25:39Future roadmap
  20. 27:26Community feedback
  21. 28:09Closing remarks
  22. 28:32Q&A: next-auth-utils vs better-auth
  23. 29:35Q&A: User management
  24. 30:42Q&A: OAuth providers
~/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.