Skip to content

vaheqelyan/next-auth

Repository files navigation

next-auth

Getting started

demo at https://next-auth.now.sh/

Clone the repo

git clone https://github.com/vaheqelyan/next-auth.git

Then create a file .env file.

SECRET=<YOUR_SESSION_SECRET>

Then create a file env-config.js

module.exports = {
	"process.env.GOOGLE_CLIENT_ID": "<YOUR_GOOGLE_CLIENT_ID>"
};

Install the dependencies

yarn
npm install

Running locally in development mode

npm run dev

Building and deploying in production

npm build
npm start

Deploying to the cloud with now.sh

npm run public