Authentication in Next.js

In Building a UI with shadcn/ui, the forms and dialogs we wired up assumed a logged-in user was already available somewhere in the component tree.