How to secure API endpoint

For my website (REACTJS based), I created Spring Boot based REST API.
I would like to secure it using JWTs, but from my understanding, JWTs has to be generated on server side. How could I use JWTs when they are generated on AUTH0 side, do es my backend need to request JWTs the same way the website does? I use auth0-js to authenticate the users.