W
W
WoopsWoops2017-03-27 23:05:37
JavaScript
WoopsWoops, 2017-03-27 23:05:37

How to do it on redux?

There is a link that I use to go to another resource to confirm my account, then if I get consent, it will redirect me back, I collect tokens and stuff them into cookies, so the question is: how at this moment when I was redirected back and the tokens were written to cookies to execute dispatch ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-03-27
@WoopsWoops

Make it so that after login it redirects to a specific route, in this route check whether cookies have been written and then pull the desired dispatch. Usually it is possible to specify which address should be redirected to after successful authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question