H
H
heducose2017-07-27 00:00:03
Node.js
heducose, 2017-07-27 00:00:03

Is it possible to use flash messages without sessions?

Became in a dead end.
Before that, I used flash messages on a regular Node / Pug stack, stored sessions and transmitted messages. How to implement this if on the Vue front?
The matter is that I do not store sessions since. decided to use JWT. Can I use flash without sessions? Or it is necessary to include sessions? Will they live with JWT? Or is there another way to do it with Vue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2017-07-27
@heducose

backend give json like :
{"type": "is-info", "text": "oops"}
and shove it into a component like
https://jsfiddle.net/Linusborg/wnb6tdg8/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question