Next.js Discord

Discord Forum

Nextjs + express js with auth0

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I’m building a project using the latest version of Next.js (2025) with a custom Express.js server, and I’m trying to integrate Auth0 authentication. I’m specifically looking for a recent and well-documented guide or GitHub repo that covers the following setup:
• Next.js with a custom Express server
• Using Next.js API routes (if necessary)
• Auth0 authentication with email/password only (no social logins)
• Domain restriction — only users from a specific email domain should be able to log in
• TypeScript
• Secure session handling (Auth0 session or token-based, depending on best practices).
- Middleware


If anyone has worked with this stack or has a good example repo/blog/tutorial (preferably from 2025 or late 2024), I’d really appreciate the link

0 Replies