User
When a user signs into Aft successfully, Aft sets a cookie authenticating the user.
Upon starting up, we'll invoke the me
RPC, which will return a user object if the login cookie is present.
And we'll add a link to call the signout
RPC, which will clear the login cookie.
We'll use the Preact useEffect
hook to do this automatically when the app starts.
app.js
That's it! Make sure you can log in and out successfully, and then we're ready to give our users some data.