~/talk

React to Authentication with Hooks

Talkat UtahJS Conf 2022 · on Friday, 2022-09-23· [react, security]
slides:none on file

A runnable React + TypeScript app (React Router 6) and Express backend shows Auth0 integration end to end: clone from developer.auth0.com, set DOMAIN/CLIENT_ID/AUDIENCE in .env, install auth0-react and server middleware, click login to redirect to Auth0 and return to /profile where ID and access tokens are decoded. getAccessTokenSilently adds a Bearer header to axios for protected routes and Express middleware verifies the JWT, so the demo actually works, uses jwt.io for decoding and auth0-react hooks.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:51Authentication basics
  3. 3:59Setting up the demo app
  4. 6:46Creating Auth0 account
  5. 8:12Configuring environment variables
  6. 11:05Live login demo
  7. 13:51React hooks for auth
  8. 17:51Customizing login page
  9. 19:16JSON Web Tokens explained
  10. 23:34Access tokens and APIs
  11. 25:43Authorization on backend
  12. 26:49Summary and resources
~/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.