Next Auth with Sequelize
This is an example of how to use the NextAuth module with Sequelizejs.
This project as is run the same way as any Next.js project.
To run it locally, just use:
nmp run dev
To run it it production mode, use:
npm build
npm start
NextAuth is included in this project here:
This example includes the following pages:
It also includes the following configuration files:
An example .env file is provided in .env.example which you can copy over to use for simple configuration:
SERVER_URL=http://localhost:3000
DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_NAME=
FACEBOOK_ID=
FACEBOOK_SECRET=
GOOGLE_ID=
GOOGLE_SECRET=
TWITTER_KEY=
TWITTER_SECRET=
[email protected]
EMAIL_SERVER=smtp.gmail.com
EMAIL_PORT=465
[email protected]
EMAIL_PASSWORD=
If you don't specify oAuth or SMTP email details you will not be able to log in.