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.
TurboStack supports two different authenticaiton methods:
- Magic Link - Perform login through a passwordless email confirmation. (Default)
- OAuth - Perform a login through a list of OAuth providers.
To get things started, add this to your .env.local: (skip if you already did it)
NEXTAUTH_URL=http://app.localhost:3000
NEXTAUTH_SECRET={{random_uuid}}
Magic Link
OAuth (Google)
This is the easiest method and enabled by default: NextAuth have a list of providers available to setup, in this tutorial, we will instruct you through Google’s integration.
- Go to the Google Developer Console.
- Create or select an existing project.
- On the sidebar, navigate to APIs & Services → Credentials.
- Click on Create Credentials and select OAuth 2.0 Client IDs.
- Choose Web application as the application type.
- Set up your Authorized redirect URIs. In development, this will be:
http://app.localhost:3000. In production, if your host are myapp.com, this will be https://app.myapp.com
- Save the credentials, and you’ll get a Client ID and Client Secret, add them in your
.env.local file.
GOOGLE_CLIENT_ID={{YOUR_GOOGLE_CLIENT_ID}}
GOOGLE_CLIENT_SECRET={{YOUR_GOOGLE_CLIENT_SECRET}}
You’re ready to go.