-
Notifications
You must be signed in to change notification settings - Fork 0
feat: email verification #36
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Implement email verification with nodemailer templates
Send password reset emails via Mailtrap SMTP
Include emailVerified in sessionCheck response
Add verify-account controller and route
Changes walkthrough 📝
auth_controller.ts
Add email verification and reset email featuresfunctions/src/controllers/auth_controller.ts
auth.ts
Add verify-account API routefunctions/src/routes/auth.ts
verifyAccountroute/verify-accountendpointauth_middleware.ts
Update auth middleware exempt routesfunctions/src/middlewares/auth_middleware.ts
/auth/request-resetfrom exempt routescsrf_middleware.ts
Adjust CSRF middleware exempt routesfunctions/src/middlewares/csrf_middleware.ts
/auth/request-resetfrom CSRF exempt routes/auth/verify-accountto exempt list