Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 [feat] : setting up routes for authentication #9

Merged
merged 31 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c349ced
env files for development env added - will be removed later
Bismay5467 Dec 19, 2023
1b8029c
middlewares added to protect the private routes
Bismay5467 Dec 19, 2023
e618f34
custom types added
Bismay5467 Dec 19, 2023
0080f85
user model created - more fields be added once we finalise the features
Bismay5467 Dec 19, 2023
595b9f6
constants for status codes and other generic constants added
Bismay5467 Dec 19, 2023
149766d
shadcn components added
Bismay5467 Dec 19, 2023
1180e21
helper function to handle JWT
Bismay5467 Dec 19, 2023
5dc1060
database config file
Bismay5467 Dec 19, 2023
b018728
utils for shadcn
Bismay5467 Dec 19, 2023
3ed6cd5
routes and pages for authentication setup
Bismay5467 Dec 19, 2023
cef462b
page for dashboard
Bismay5467 Dec 19, 2023
4f63f3a
changes made in config files.
Bismay5467 Dec 19, 2023
6fc9cff
dependencies installed for nodemailer
Bismay5467 Dec 21, 2023
744cbfa
env variables defined for nodemailer
Bismay5467 Dec 21, 2023
9c9fbda
matching routes added to middleware config
Bismay5467 Dec 21, 2023
ad6d6a1
types defined for jwtpayload
Bismay5467 Dec 21, 2023
3e66cfc
mongoose method to compare password
Bismay5467 Dec 21, 2023
66b6d57
mail template for sending reset password mail
Bismay5467 Dec 21, 2023
5e9383b
sendmail util function implemented uisng nodemailer
Bismay5467 Dec 21, 2023
b17c378
validate auth token form reset password link
Bismay5467 Dec 21, 2023
9b7bc91
changes made
Bismay5467 Dec 21, 2023
0237d35
constants defined
Bismay5467 Dec 21, 2023
a2b67a6
changes made
Bismay5467 Dec 21, 2023
978e7b3
changes made
Bismay5467 Dec 21, 2023
a24a6f7
api to validate auth token from reset password link
Bismay5467 Dec 21, 2023
8f7c384
bug fixed in compare password method in signin api
Bismay5467 Dec 21, 2023
8d00cfd
changes made
Bismay5467 Dec 21, 2023
e873948
api to send reset password link on email and to update password
Bismay5467 Dec 21, 2023
be7d126
a seperate directory created to organise auth related helpers
Bismay5467 Dec 21, 2023
99074f0
import path updated
Bismay5467 Dec 21, 2023
a4a8b99
reset password page implemented
Bismay5467 Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions exam-archive/.env.development.local
Shubham-Rasal marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MONGO_URI=mongodb+srv://Bismay:[email protected]/ExamArchive?retryWrites=true&w=majority
MONGO_MAX_POOLSIZE=250
MONGO_TIMEOUT_MS=5000

JWT_SECRET=4gyULNoowaUnNQD

NEXTAUTH_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

NODEMAILER_HOST=gmail
NODEMAILER_PORT=587
[email protected]
NODEMAILER_PASSWORD=qmxndmzwfvaneqtv

DOMAIN_URL=http://localhost:3000
16 changes: 16 additions & 0 deletions exam-archive/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
Loading