TurboStack uses NextAuth to authenticate users. You can configure it in the /apps/web/api/auth/[...nextauth]/route.ts file.

There are 3 built-in ways to authenticate users with TurboStack: Magic Links, and OAuth. (check “Authentication Methods”)

We already implemented this at the sample authentication page, resided at the /apps/web/app/app/(auth)/sign-in/form.tsx file.

While running your app, if you open app.localhost:3000, you’ll see a page like this: