If I get my question back, you want your client (React App) to be the only client that can access your server.
As a solution to this, you will need a combination of CORS and JWT authorization. Thus, I suggest having strict CORS to allow only yours to respond to the application domain in order to call the server. For this, I usually use the CORS npm module and configure the origin on my server, or you can do it yourself.
var express = require('express')
var cors = require('cors')
var app = express()
var corsOptions = {
origin: 'http://example.com',
optionsSuccessStatus: 200
}
The above code allows you to accept requests from example.com on the server or view this code for a more dynamic whitelist and blacklist.
JWT, json, API , .
, , , JWT, JWT API, , API. "Interceptor", (Passport oAuth) API .
2 , , JWT , . , JWT .
, - , JWT API (post/get/put), , API, API-, , API. node JWT .
, , JWT , . , , , . JWT. JWT, , , , , TTL , , , , - .