Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kavindumadushanka972/next-auth-v4
NextAuth with MongoDB(mongoose) + Server Actions
https://github.com/kavindumadushanka972/next-auth-v4
nextauth nextjs nextjs13
Last synced: about 1 month ago
JSON representation
NextAuth with MongoDB(mongoose) + Server Actions
- Host: GitHub
- URL: https://github.com/kavindumadushanka972/next-auth-v4
- Owner: kavindumadushanka972
- Created: 2023-09-16T07:48:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-18T05:17:36.000Z (over 1 year ago)
- Last Synced: 2023-09-18T06:24:13.463Z (over 1 year ago)
- Topics: nextauth, nextjs, nextjs13
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Functionalities
- SignIn with OAuth(Google)
- SignIn with Credentials(Email, Password)
- SignUp with Name, Email, Password
- Email Verification
- Update Profile Details
- Change Password
- Reset Password
- Middleware to secure certain pages(Admin Pages)## .env variables
```dotenv
NEXTAUTH_URL= # ex: http://localhost:3000
NEXTAUTH_SECRET= # type openssl rand -base64 32 on the terminal and put generated value here. Used by NextAuth
GOOGLE_CLIENT_ID= # get from https://console.cloud.google.com
GOOGLE_CLIENT_SECRET= # get from https://console.cloud.google.com
MONGODB_URI= # get from https://www.mongodb.com
TOKEN_SECRET= # type openssl rand -base64 32 on the terminal and put generated value here. Used in jwt sign & verify
EMAIL_USER= # email address for send emails
EMAIL_PASSWORD= # email password to 'EMAIL_USER' account. check https://support.google.com/mail/answer/185833?hl=en to generate the password