Auth0 Home Blog Docs

How middlewares work in Auth0 ?

middleware

#1

In the React JS tutorial, you use a middleware, where is it coming from ?? I can’t find it in the code ? can’t understand how come it works.

This is exactly the code and this is the page: https://auth0.com/blog/reactjs-authentication-tutorial/

app.get(’/api/jokes/celebrity’, authCheck, (req,res) => {


#2

The first code snippet in the Build The Back-End section contains the definition of the authCheck middleware assuming that was what you’re referring to.


#3