In my React & Node.js Authentication service the JWT tokens are used to authorize the access to various API endpoints. A JWT token contains an encrypted user's ID and the token is used to get the user's information and allow access.
This video explains how I'm using the JWT tokens in the backend. I'm using for JWT tokens creation and reading the jsonwebtoken library.