D
D
Diyahonz2018-09-12 06:50:24
JavaScript
Diyahonz, 2018-09-12 06:50:24

What is the best way to organize the transfer of a token on the front-end between microservices?

Hello! I have an authorization center that distributes authorization tokens and there are micro services. Users of micro services are authorized through this authorization center. If you are authorized on one micro service, then the token is valid on other micro services. The question is how best to organize the transition of the token on the frontend? I store the token in local storage.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Inchin ☢, 2018-09-12
@In4in

You can store it in cookies and make it available to other domains =)
domain=site.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question