I have a Node server running on port 8080 and a react web based front end on port 3000.
(我有一个运行在端口8080上的节点服务器,一个运行在端口3000上的基于React Web的前端。)
The two communicate by sending requests to each other.
(两者通过相互发送请求进行通信。)
For example when the user logs in, the server does the logic and stores a token in the client (not through a response). (例如,当用户登录时,服务器执行逻辑并将令牌存储在客户端中(而不是通过响应)。)
How would I adapt this to work with a mobile app (react native)?
(我将如何适应移动应用程序(本机反应)?)
As in how can I store a token on mobile (cookies..?). (就像我如何在移动设备上存储令牌(cookies ..?)一样。)
Is requesting data the same as a web app? (请求数据与Web应用程序相同吗?)
Anything else I need to be aware of? (我还有什么需要注意的吗?)
Thanks in advance.
(提前致谢。)
ask by XtraTerrestrialCoder translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…