tasks table with title and done columns. If you do not have one yet, follow JavaScript steps 1 to 4.
Install and create the client
Know who is signed in
onAuthStateChange tells you when someone signs in or out, and fires once when the page loads with whatever session was stored.
A sign-in form
useUser updates by itself.
A live task list
Load the tasks, then listen for changes on thetasks table. This needs Realtime switched on for the table in the dashboard.
Sign out
Auth guides
Social sign-in, passkeys and more.
Record changes
How live updates work.