How can we encrypt auth token passed to the application from single SPA
singleSpa.registerApplication({name: 'app1',activeWhen,app,customProps: { authToken:"d83jD63UdZ6RS6f70D0" }});
How can we encrypt auth token passed to the application from single SPA
singleSpa.registerApplication({name: 'app1',activeWhen,app,customProps: { authToken:"d83jD63UdZ6RS6f70D0" }});
Encryption on a web page is easy, for example, you can use a symmetric encryption algorithm like AES (AES-JS) But the actual question is what is your goal?
There will be many more security concerns about your usage (judging by code snippet) but you'll need more details in your question.