~/talk

Add authentication to your React app in 5 minutes with useAuth

Talkat Reactathon 2020 · 2020-03-30..03-31· [react, security]
slides:none on file

Demonstrates adding authentication to a blank Gatsby app in under five minutes using the useAuth hook, with working login/logout and session restoration from localStorage. Implements providers for Netlify Identity and Auth0, shows the required callback page, and uses xstate for background state so no context provider is needed. Config switches require only provider config and a navigate function. Open source extensibility is promised so additional providers can be added.

AI-written summary · about

  1. 0:00The challenges of auth
  2. 1:20Security and data storage
  3. 3:05Choosing an auth provider
  4. 4:41Frontend auth implementation
  5. 6:12Introducing useAuth
  6. 6:56Setting up Netlify Identity
  7. 8:39Building UI with useAuth
  8. 11:36Switching to Auth0
  9. 13:04Finalizing auth and next steps
~/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.