L
L
Larisa .•º2019-09-27 22:12:27
OAuth
Larisa .•º, 2019-09-27 22:12:27

How to return a callback to the client?

tell me, maybe I'm looking in the wrong place.
On the backend: there is a esia redirect url, authorization and a -callback url to return data from the esia.
Client on vue. Authorization by jwt-token is configured.
That is, the client sends a request to the backend, the backend receives data from the esia, I can’t figure out how to “direct” to the client, the user received from the esia.
Are there ways to accept a callback on vue or am I in the wrong direction.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
szelga, 2019-09-28
@szelga

if (as I understand it), the client without this data with the ESIA will still not be able to do anything on the site, then you can simply force him to "synchronously" wait for a response. if it takes too much time, then you can look towards websockets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question