A
A
Andrey Grishin2020-04-05 14:26:50
JavaScript
Andrey Grishin, 2020-04-05 14:26:50

How to pass data from backend to frontend?

I am doing authorization on Passport.js - JWT. I'm a noob myself and just started learning the backend. I was able to write authorization on the server side. But how to transfer the finished token to the user, then save it in local storage and at the same time redirect to the personal account. In this I don't know how to do it.
Maybe I'm overcomplicating things and there are better solutions.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question