> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turbostack.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> At the end of this tutorial, you'll have an authentication page up and running

TurboStack uses [NextAuth](https://next-auth.js.org) 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"](/features/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:

<img src="https://mintcdn.com/ravitechsolutions/jCk1IPeJr8ul3nyO/images/sign-in-page.png?fit=max&auto=format&n=jCk1IPeJr8ul3nyO&q=85&s=47e828ae20369836a278faf6b0fd2b61" alt="Authentication Page for TurboStack" width="1916" height="962" data-path="images/sign-in-page.png" />
