How do I integrate custom script with auth routes?

I am building a backend with Express.js and Prisma. I can’t seem to find documentation on how to add my middleware to the routes. How do I customize the provided routes from Auth0?

Is it as simple as:
authRouter.post(/signup, authController.createUser)

app.use('/', authRouter)

Or do I need to change something in my dashboard?

Hi @lawyeh,

Welcome to the Auth0 Community!

I understand you want to add some functions to an Express API route protected by Auth0.

In this example, you can see checkJwt authorization middleware is used to validate tokens sent to the provided route.

If this doesn’t answer your question, can you provide some additional context?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.