Features
Authentication Methods
List of authentication methods available to TurboStack and instructions to add new ones.
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)
This is the easiest method and enabled by default:
- Setup an e-mail integration.
- You’re ready to go!
This is the easiest method and enabled by default:
- Setup an e-mail integration.
- You’re ready to go!
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 aremyapp.com
, this will behttps://app.myapp.com
- Save the credentials, and you’ll get a Client ID and Client Secret, add them in your
.env.local
file.
You’re ready to go.