Deploy to Vercel with only a few clicks. Vercel will ask for information about the necessary environment variables.
Obtained by using the URL of the locally hosted site,
/api/auth. Learn more from the NextAuth Docs. (opens in a new tab)
A random string used to hash tokens, sign/encrypt cookies and generate cryptographic keys. Learn more from the NextAuth Docs. (opens in a new tab)
Generate with openssl in the terminal:
$ openssl rand -base64 32
Follow these steps to obtain this information:
- Create a new Google Cloud Project.
- Create credentials for a new OAuth 2.0 Client ID.
- Set the Application Type as Web Application and choose any name.
[HOSTED_LINK]/api/auth/callback/googleas an Authorized redirect URI.
- Save the configuration. Once created, you can view the Client ID and Client Secret.
Follow the above steps 👆
The PostgreSQL database URL. A PostgreSQL database can be hosted on many platforms, including Heroku, AWS, and Vercel. We recommend Vercel because it's free and easy to set up.