Auth0 & Node.js-Based Web Development

Job ID: 39283503

Budget: ₹600 – ₹1,500 INR

Next.js Frontend with Auth0 & NodeJs Backend
Develop a Next.js frontend with Auth0 authentication and a Node.js admin backend. Upon successful authentication, an email should be sent containing the authentication token.

Task Details
1. Frontend (Next.js / React.js)
Develop a Next.js frontend (If unable to use Next.js, React.js is allowed).
Implement Auth0 authentication for user login.
Upon successful authentication:
Fetch the Auth0 access token.
Send this token to the Node.js backend via an API request.

2. Backend (Node.js + Express)
Create an admin backend using Node.js and Express.
Implement an endpoint (/auth/callback) to receive the token from the frontend.
Validate the received token with Auth0.
Send an email to the authenticated user containing the token.

3. Email Service
Use Nodemailer or any email-sending service (e.g., SendGrid, SMTP).
Send an email to the authenticated user's email with the token in the email body.

Deliverables
GitHub Repository with both frontend and backend code.
README file with setup instructions (including Auth0 configuration).
Screen Recording demonstrating the working authentication process.
Bonus (Optional)
Deploy:
Frontend on Netlify/Vercel.
Backend on Railway/Render/AWS Lightsail.
Implement Role-based authentication (Admin/User) in Auth0.